Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7df3f9

Browse files
committed
FIX: fixed baxked_bases
1 parent b6eba0c commit f7df3f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,8 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
21852185
**kwargs)
21862186
renderer = self.figure._cachedRenderer
21872187
bbox_artists = kwargs.pop("bbox_extra_artists", None)
2188-
2188+
bbox_inches = self.figure.get_tightbbox(renderer,
2189+
bbox_extra_artists=bbox_artists)
21892190
pad = kwargs.pop("pad_inches", None)
21902191
if pad is None:
21912192
pad = rcParams['savefig.pad_inches']

0 commit comments

Comments
 (0)