diff --git a/lib/matplotlib/blocking_input.py b/lib/matplotlib/blocking_input.py index f59a54ff7343..bf986ca5237b 100644 --- a/lib/matplotlib/blocking_input.py +++ b/lib/matplotlib/blocking_input.py @@ -83,7 +83,7 @@ def __call__(self, n=1, timeout=30): self.n = n self.events = [] - if self.figure.canvas.manager: + if self.fig.canvas.manager: # Ensure that the figure is shown, if we are managing it. self.fig.show() # Connect the events to the on_event function call.