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

Skip to content

Commit 3aa2436

Browse files
authored
Merge pull request #9762 from matplotlib/auto-backport-of-pr-9759
Backport PR #9759 on branch v2.1.x
2 parents 66967ab + 47602d5 commit 3aa2436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/blocking_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __call__(self, n=1, timeout=30):
101101
self.events = []
102102
self.callbacks = []
103103

104-
if hasattr(self.fig, "manager"):
104+
if hasattr(self.fig.canvas, "manager"):
105105
# Ensure that the figure is shown, if we are managing it.
106106
self.fig.show()
107107

0 commit comments

Comments
 (0)