FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PoC: GUI-native crosshair cursor by timhoffm · Pull Request #30516 · matplotlib/matplotlib · GitHub

Repository navigation

PoC: GUI-native crosshair cursor - #30516

Draft
timhoffm wants to merge 2 commits into
matplotlib:mainfrom
timhoffm:crosshair-cursor
Draft

timhoffm wants to merge 2 commits into
matplotlib:mainfrom
timhoffm:crosshair-cursor

Conversation

timhoffm commented Sep 4, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

Addresses #30515.

So far, this is a fairly minimal PoC: It adds a permanent crosshair following the mouse in Qt.
It proves that the fundamental logic is quite simple and it should be bearable to add it to all gui backends.

timhoffm commented Sep 5, 2025

Copy link
Copy Markdown
Member Author

Updated version with crosshair limited to the Axes under the cursor

Copy link
Copy Markdown
Contributor

Hi @timhoffm thanks for sharing this PoC, it is really helpful to see how simple the Qt-side logic can be while avoiding figure redraws.
I was wondering what you see as the next step here, should this be extended backend-by-backend with similar native implementations, or would it make sense to introduce a small abstraction in backend_bases first?
i would be happy to experiment with extending this to another backend if that would be useful

Copy link
Copy Markdown
Member Author

This will likely move into the larger concept described in #30953.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL