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

[Bug]: qt cursor fails to return to default "pointer" (arrow shape) after zoom or pan mode is deactivated (or when mouse moves out of axes) #24308

Open
Labels
@anntzer

Description

@anntzer

Bug summary

On qt(6)cairo, qt5agg or qt5cairo (or mplcairo.qt6), after the mouse cursor is changed (by activating zoom or pan mode and moving the mouse over an axes), deactivating the tool fails to change back the cursor to pointer/arrow. (Switching the active mode between zoom and pan does change the cursor, though.)

Curiously enough, this doesn't occur with qt(6)agg.

Code for reproduction

frompylabimport*;gca()# then activate a tool, move the mouse, deactivate a move, as described above, and move again the mouse.

Actual outcome

Cursor fails to go back to arrow/pointer.

Expected outcome

Cursor goes back to arrow/pointer.

Additional information

This is on a conda python but with pip installed packages.
This appears to affect matplotlib at least as far back as 3.4.0 (didn't check further), soperhaps this is rather a problem with some recent versions of qt?
The fact that I observe this with qtcairo/mplcairo.qt but not with qtagg is rather strange, though, as both inherit the same cursor handling code from the base class.

Operating system

fedora37

Matplotlib Version

3.7.0.dev538+g9b4985e185

Matplotlib Backend

qtcairo, qt5agg, qt5cairo, mplcairo.qt

Python version

3.10

Jupyter version

None

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp