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

Skip to content

Commit f2e0d89

Browse files
committed
Do not attempt to draw artists if ax is invisible
1 parent 2b7db8a commit f2e0d89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,9 @@ def update(self):
12181218
useblit
12191219
12201220
"""
1221+
if not self.ax.get_visible():
1222+
return False
1223+
12211224
if self.useblit:
12221225
if self.background is not None:
12231226
self.canvas.restore_region(self.background)

0 commit comments

Comments
 (0)