Skip to content

Commit 7961de3

Browse files
committed
Walk the artist tree when preparing for saving with tight bbox.
1 parent a3bd6ba commit 7961de3

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)