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

Skip to content

Commit 43d86e6

Browse files
committed
do not check the visibility of bbox_extra_artists of savefig
svn path=/trunk/matplotlib/; revision=7946
1 parent ac1306f commit 43d86e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,8 +1613,8 @@ def print_figure(self, filename, dpi=None, facecolor='w', edgecolor='w',
16131613
renderer = self.figure._cachedRenderer
16141614
bbox_inches = self.figure.get_tightbbox(renderer)
16151615

1616-
bb = [a.get_window_extent(renderer) for a in kwargs.pop("bbox_extra_artists", []) \
1617-
if a.get_visible()]
1616+
bb = [a.get_window_extent(renderer) for a \
1617+
in kwargs.pop("bbox_extra_artists", [])]
16181618
if bb:
16191619
_bbox = Bbox.union([b for b in bb if b.width!=0 or b.height!=0])
16201620

0 commit comments

Comments
 (0)