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

Skip to content

Commit 0c57b7a

Browse files
committed
fix savefig bug
svn path=/trunk/matplotlib/; revision=8318
1 parent fcae31a commit 0c57b7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8002,7 +8002,7 @@ def get_tightbbox(self, renderer):
80028002
bb.extend([bby1, bby2])
80038003

80048004

8005-
bb.extend([c.get_window_extent(renderer) for c in artists])
8005+
bb.extend([c.get_window_extent(renderer) for c in artists if c.get_visible()])
80068006

80078007
_bbox = mtransforms.Bbox.union([b for b in bb if b.width!=0 or b.height!=0])
80088008

0 commit comments

Comments
 (0)