matplotlib.figure.Figure.waitforbuttonpress — Matplotlib 3.10.3 documentation (original) (raw)

Figure.waitforbuttonpress(timeout=-1)[source]#

Blocking call to interact with the figure.

Wait for user input and return True if a key was pressed, False if a mouse button was pressed and None if no input was given within_timeout_ seconds. Negative values deactivate timeout.