matplotlib/matplotlib — pull request #1155 by pwuertz (2012-08-28 07:46:06+00:00)
Title: workaround for fixed dpi assumption in adjust_bbox_pdf

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.