Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
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