workaround for fixed dpi assumption in adjust_bbox_pdf #1155

Merged
merged 1 commit into from Aug 28, 2012

3 participants

@pwuertz

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
Matplotlib Developers member

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 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