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

Remove annotation #88

Open
baderAmmoun opened this issue Apr 2, 2019 · 1 comment
Open

Remove annotation #88

baderAmmoun opened this issue Apr 2, 2019 · 1 comment

Comments

@baderAmmoun
Copy link

the annotation does not disappear when the mouse leaves the figure or axis so quickly

@joferkington
Copy link
Owner

By default, this is the expected behavior. Annotations appear when you click and do not move or disappear until you dismiss them (right click to dismiss).

Do you mean with hover=True? If so, yes, if you move the mouse quickly enough, it will remain. It will disappear again as soon as you move your mouse back over the figure. There's not much that can be done to avoid this. mpldatacursor deliberately rate-limits its callbacks to avoid CPU usage issues. That means that if you manage to move the mouse out of the figure in less than the callback rate-limit interval, the popup will remain. If you'd like, that interval can be made configurable to lessen the frequency that this occurs at, but decreasing the callback interval will increase CPU usage.

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