-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ENH: make mouse over behavior configurable #4847
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
Conversation
The mouse-over behavior to add a string to the message line can quickly become too expensive to compute the hit list in the time between mouse move events (particularly in the nbagg and qt5agg backends) when the number of artists gets large. This adds: - a flag on the Axes objects to control if the hitlist should be computed - an rcparam to control it
Closes #4767 |
which can be used to add zdata to the cursor display | ||
in the status bar. Also adds an implementation for Images. | ||
|
||
Added an property attribute ``mouseover`` and rcParam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was a bit confused by this, I think... This PR is really just an optimization around a new feature that hasn't been released yet, right?
Then maybe instead of "Added an attribute..." say "This feature requires that the axes.mouseover
attribute is set to True
..." etc.
Barring that, I'm 👍 on this PR.
Might it make more sense to always show it when the number of artists is small, and have this parameter which allows one to force it to show for a larger number of artists? Another alternative is to make this a property of the Artist, where all Artists but Images default to False. My concern is that the reason I added this is my new-user colleagues were turned off by the lack of mouse-over display on images, and these folks are not going to know to enable this setting. |
How about adding a property to the artists that the axes checks on addition to allow the |
That works for me. |
@blink1073 You want to do it or should I? |
My todo list is quite large at the moment... |
It was worth a try! Hopefully I will get to it tonight. |
closing in favor of #4878 |
The mouse-over behavior to add a string to the message line
can quickly become too expensive to compute the hit list
in the time between mouse move events (particularly in the nbagg
and qt5agg backends) when the number of artists gets large.
This adds:
be computed
@blink1073
vs
These are on a newish i7 desktop, I was getting a ms/Line2D object on a 1.5 year old mobile i5 with power saving turned up to 11.