workaround for fixed dpi assumption in adjust_bbox_pdf #1155

merged 1 commit into from Aug 28, 2012


None yet
3 participants

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 commented Aug 28, 2012

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

Merge pull request #1155 from pwuertz/temp-tight-bbox-fix
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