Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Closed
Description
Bug report
Bug summary
On Linux, the command 'plt.waitforbuttonpress' leads on systems with a qt5 backend to the warning
QTimer::singleShot: Timers cannot have negative timeouts
Code for reproduction
# Paste your code hereimportmatplotlib.pyplotaspltplt.waitforbuttonpress()
Actual outcome
Python 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0] :: Anaconda, Inc. on linuxType "help", "copyright", "credits" or "license" for more information.>>> import matplotlib.pyplot as plt>>> plt.waitforbuttonpress()QTimer::singleShot: Timers cannot have negative timeoutsTrue>>> ```**Expected outcome**no warning**Matplotlib version**<!--Please specify your platform and versions of the relevant libraries you are using:--> * Operating system: Linux * Matplotlib version: 3.1.1 * Matplotlib backend (`print(matplotlib.get_backend())`):Qt5Agg * Python version: 3.7.4 * Jupyter version (if applicable): * Other libraries: <!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--><!--If you installed from conda, please specify which channel you used if not the default-->