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

workaround for fixed dpi assumption in adjust_bbox_pdf #1155

Merged
merged 1 commit into from Aug 28, 2012
Merged

workaround for fixed dpi assumption in adjust_bbox_pdf #1155

merged 1 commit into from Aug 28, 2012

Conversation

pwuertz
Copy link
Contributor

@pwuertz pwuertz commented Aug 28, 2012

When saving figures with bbox_inches='tight', the function adjust_bbox_pdf which is used for rescaling and repositioning the figure assumes a fixed dpi of 72. The pgf backend leaves figure.dpi up to the user for defining the resolution of images. This PR is a workaround for PGF figures being handled incorrectly in adjust_bbox_pdf until we find out why the 72 dpi assumption was necessary (fixes #1135).

@leejjoon
Copy link
Contributor

I think this is good for 1.2 release. As soon as we have 1.2 out, let's remove "adjust_bbox_pdf" and see if it works.

mdboom added a commit that referenced this pull request Aug 28, 2012
workaround for fixed dpi assumption in adjust_bbox_pdf
@mdboom mdboom merged commit 9892758 into matplotlib:master Aug 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems with bbox_inches='tight'
3 participants