8000 waitforbuttonpress in Linux · Issue #17616 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
waitforbuttonpress in Linux #17616
Closed
Closed
@thomas-haslwanter

Description

@thomas-haslwanter

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 here
import matplotlib.pyplot as plt
plt.waitforbuttonpress()

Actual outcome

Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.waitforbuttonpress()
QTimer::singleShot: Timers cannot have negative timeouts
True
>>> ```

**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-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0