matplotlib.pyplot.waitforbuttonpress#
- matplotlib.pyplot.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 amouse button was pressed and None if no input was given withintimeout seconds. Negative values deactivatetimeout.
Notes
Note
This is thepyplot wrapper for
Figure.waitforbuttonpress.
Examples usingmatplotlib.pyplot.waitforbuttonpress#
On this page