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 6075ec8 + fbbede3 commit 619baedCopy full SHA for 619baed
1 file changed
lib/matplotlib/figure.py
@@ -2329,7 +2329,8 @@ def get_default_bbox_extra_artists(self):
2329
if ax.get_visible():
2330
bbox_artists.extend(ax.get_default_bbox_extra_artists())
2331
# we don't want the figure's patch to influence the bbox calculation
2332
- bbox_artists.remove(self.patch)
+ if self.patch in bbox_artists:
2333
+ bbox_artists.remove(self.patch)
2334
return bbox_artists
2335
2336
def get_tightbbox(self, renderer, bbox_extra_artists=None):
0 commit comments