From ae2ea854cb6fb89ff2f470d19d20c2d1d7a14667 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Tue, 30 Oct 2012 23:11:17 -0500 Subject: [PATCH] Fix incorrect conversion in 2f11dee. This code wasn't quite correctly translated when making PEP8 fixes. --- lib/matplotlib/backend_bases.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index 2fabb3c891ad..296de47884f0 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -2091,7 +2091,8 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w', if bbox_filtered: _bbox = Bbox.union(bbox_filtered) trans = Affine2D().scale(1.0 / self.figure.dpi) - bbox_inches = TransformedBbox(_bbox, trans) + bbox_inches = Bbox.union([bbox_inches, + TransformedBbox(_bbox, trans)]) pad = kwargs.pop("pad_inches", None) if pad is None: