-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cursor displays x, y coordinates with too much or too little precision #5726
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
Comments
👍 Getting these changes in for 2.0 would be great. |
Is there an approximate timeline? |
'soon'. Many dragon inhabited rabbit holes were discovered by @mdboom. Probably first quarter next year. |
I love that expression. What the hell were dragons doing in the rabbit holes? They should stick to their dragon caves! |
I would worry about some rabbits that inhabit dragon caves... On Tue, Dec 29, 2015 at 3:53 PM, Michael Droettboom <
|
Yes. The rabbits I've been dealing with definitely had pointy teeth... |
We're (approximately) nearing the end now; @anntzer any chance you might make a PR out of your suggestions soon? |
This is handled in my large formatter rewrite PR (https://github.com/matplotlib/matplotlib/pull/5804/files#diff-efde3b8d2ec4015b0fc910f1080cc492R560), but it unfortunately seems unlikely that it'll go into 2.0. To be honest I'd rather try to get that PR in instead of messing up again from scratch with that (nasty) part of the codebase... |
As you say, that PR is probably too large to go into 2.0; we may have to bump this issue as well, then. |
bumping the issue to 2.1. |
Fixed by #16776. |
Currently, the x, y coordinates of the cursor (displayed by the interactive backend) are displayed with 6 significant digits (basically, this is due to
ScalarFormatter.format_data_short
using the "-12g" format string, which defaults to 6 significant digits). This leads to a few issues.Thus, I propose to change
format_data_short
(which AFAICT is only used for this purpose), so that it displays the coordinates with the same base offset as the axes do (but with the same absolute precision as the additional shift), and the additional shift with 4 significant digits (if we really wanted to do this properly perhaps we can get the axes size in pixels and decide accordingly, but that may be overdoing it).Thoughts?
The text was updated successfully, but these errors were encountered: