Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
Allow Artists to Display Pixel Data in Cursor | ||
--------------------------------------------- | ||
Adds `get_cursor_data` and `format_cursor_data` methods to artists | ||
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 commentThe 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 Barring that, I'm 👍 on this PR. | ||
(``axes.mouseover``) to Axes objects to control if the hit list is | ||
computed. For moderate number of artists (>100) in the axes the | ||
expense to compute the top artist becomes greater than the time | ||
between mouse events. For this reason the behavior defaults to | ||
``False``, but maybe enabled by default in the future when the hitlist | ||
computation is optimized. | ||
To enable the cursor message on a given axes :: | ||
ax.mouseover = True | ||
To enable for all new axes created :: | ||
matplotlib.rcParams['axes.mouseover'] = True |