X Tutup
Skip to content

PoC: GUI-native crosshair cursor#30516

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

PoC: GUI-native crosshair cursor#30516
timhoffm wants to merge 2 commits intomatplotlib:mainfrom
timhoffm:crosshair-cursor

Conversation

@timhoffm
Copy link
Member

@timhoffm timhoffm commented Sep 4, 2025

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.

grafik

@timhoffm
Copy link
Member Author

timhoffm commented Sep 5, 2025

Updated version with crosshair limited to the Axes under the cursor

grafik

@aman-coder03
Copy link

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

@timhoffm
Copy link
Member Author

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

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.

2 participants

X Tutup