Apply to work with matplotlib for GSOC! Take a look at our ideas list and learn how to apply here .
The 2019 SciPy John Hunter Excellence in Plotting Contest is accepting submissions until June 8th!
Version 3.0.3
matplotlib
Fork me on GitHub

Table of Contents

matplotlib.pyplot.waitforbuttonpress

matplotlib.pyplot.waitforbuttonpress(*args, **kwargs)[source]

Blocking call to interact with the figure.

This will return True is a key was pressed, False if a mouse button was pressed and None if timeout was reached without either being pressed.

If timeout is negative, does not timeout.

Examples using matplotlib.pyplot.waitforbuttonpress