Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 765d452 + 2079bde commit 150faa1Copy full SHA for 150faa1
1 file changed
lib/matplotlib/figure.py
@@ -2340,7 +2340,8 @@ def get_default_bbox_extra_artists(self):
2340
if ax.get_visible():
2341
bbox_artists.extend(ax.get_default_bbox_extra_artists())
2342
# we don't want the figure's patch to influence the bbox calculation
2343
- bbox_artists.remove(self.patch)
+ if self.patch in bbox_artists:
2344
+ bbox_artists.remove(self.patch)
2345
return bbox_artists
2346
2347
def get_tightbbox(self, renderer, bbox_extra_artists=None):
0 commit comments