plot icon indicating copy to clipboard operation
plot copied to clipboard

Expose computed margins

Open tophtucker opened this issue 2 years ago • 1 comments

Could provide more detail than you can get from the exposed scales, e.g. when there’s faceting or insets.

Related:

  • https://github.com/observablehq/plot/issues/1192

tophtucker avatar Sep 13 '23 17:09 tophtucker

This could be as simple as setting figure.dimensions = dimensions (though we might want to have a function here instead, and maybe be defensive about mutations by returning a copy of the dimensions object).

Fil avatar Sep 26 '23 09:09 Fil