Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scale plot (including labels) to bounding box #304

Closed
ddale opened this issue Jun 20, 2011 · 3 comments
Closed

scale plot (including labels) to bounding box #304

ddale opened this issue Jun 20, 2011 · 3 comments

Comments

@ddale
Copy link
Contributor

ddale commented Jun 20, 2011

Original report at SourceForge, opened Tue Feb 2 15:25:11 2010

usually i want to decide inside latex about the margins (padding) of a figure. therefore i usually (manually) fit the figure in gtk-agg so that everything touches the image edges. it should be possible to save the figure with no padding at all. if padding is desired, so that for example the actual plots (Axes) have the same size independet of space consumption of differing labels, it would be nice if it was possible to have absolute units instead of percentages where the actual margins depend on the aspect ratio of the figure (which might differ between various figures)

@dmcdougall
Copy link
Member

I think this issue can now be closed. It is resolved by fig.tight_layout, unless I'm missing something?

@efiring
Copy link
Member

efiring commented Sep 6, 2012

It's not entirely clear, but I think this is making two requests, one of which (zero padding) is allowed by tight_layout. The other involves being able to specify dimensions in physical units. Right now, only the figure size can be specified in inches. All manipulations of the axes bbox are then in terms of fractions of the figure dimensions. I think that what is requested is the ability to specify, for example, that the edge of the figure be 0.5 inches from the edge of the axes, with the axes bbox specified in physical units. This is ideal for the case where one wants to standardize on certain ratios of data units to physical units. At present this requires considerable work on the part of the user.

@pelson
Copy link
Member

pelson commented Oct 18, 2012

#1109 is a bucket for a better geometry manager. In this case the user would like to be able to specify some aspects of their plot in physical units (e.g. the axes should have a 0.5 inch padding).

Although this is not currently possible, the purpose of the aforementioned issue and subsequent MEP should cover this. Closing this issue.

@pelson pelson closed this as completed Oct 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants