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

Skip to content

Commit c364a92

Browse files
committed
Do not attempt to draw artists if ax is invisible
1 parent e28e51c commit c364a92

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
@@ -1181,6 +1181,9 @@ def update(self):
11811181
useblit
11821182
11831183
"""
1184+
if not self.ax.get_visible():
1185+
return False
1186+
11841187
if self.useblit:
11851188
if self.background is not None:
11861189
self.canvas.restore_region(self.background)

0 commit comments

Comments
 (0)