Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

waitforbuttonpress in Linux #17616

Closed
Closed
Labels
Milestone
@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 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-->

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp