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).
workaround for fixed dpi assumption in adjust_bbox_pdf
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.