Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to remove the "default" cursor set with MPLCURSORS? #66

Open
battaglia01 opened this issue Sep 29, 2023 · 2 comments
Open

Comments

@battaglia01
Copy link

I have a default cursor set with the MPLCURSORS environment variable. This works well for most figures.

However, sometimes, for some one-off figure, I'd like to create a custom annotation and etc - pretty basic use case - but I don't know how to get rid of the "default" cursor created by MPLCURSORS.

It would be great if we could call some function, called something like get_all_cursors(ax), which will return all cursors on some axes. Then we could remove or modify them.

Is this possible to do?

@anntzer
Copy link
Owner

anntzer commented Sep 29, 2023

Right now there's Cursors._keep_alive, which provides an (internal, weak) mapping of artists to cursors; I could just expose the list of cursors in there and let you filter based on cursor.artists as desired, how does that look to you?

@battaglia01
Copy link
Author

Sounds good! So what would this look like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants