Skip to content

Commit 65e53ed

Browse files
authored
Merge pull request #14216 from anntzer/dryrun-walk-tree
FIX: Walk the artist tree when preparing for saving with tight bbox.
2 parents 3d0699a + 7961de3 commit 65e53ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,7 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
20672067
self.figure,
20682068
functools.partial(
20692069
print_method, dpi=dpi, orientation=orientation))
2070+
self.figure.draw(renderer)
20702071
bbox_artists = kwargs.pop("bbox_extra_artists", None)
20712072
bbox_inches = self.figure.get_tightbbox(renderer,
20722073
bbox_extra_artists=bbox_artists)

0 commit comments

Comments
 (0)