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

Skip to content

Commit 47602d5

Browse files
efiringMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #9759: blocking_input: Fix "manager" attr check
1 parent 66967ab commit 47602d5

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)