-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
pyplot(ticks=:native) doesn't use native ticks #3284
Comments
Yes. I've noticed that too. That's very strange. It shouldn't technically be an issue with setting the "major formatter" to display all digits (because 1 is precisely represented using floating point values). As a temporary workaround, you could use Plotly(JS) or InspectDR.jl which also are interactive backends. I haven't tried Plotly, but I know InspectDR.jl (my own backend) doesn't suffer from this issue when Please be aware that in InspectDR:
(NOTE: I am not really part of Plots.jl's core team, so I don't really have much more to contribute, sorry.) |
@jonniedie I'm able to reproduce this with commit head half a year ago, probably something else has changed, not really the pyplot.jl backend code |
However the zooming updates the numbers on the ticks right? |
I believe the issue is due to Showoff.jl as it gives the tick locations. Would someone be able to test out JuliaGraphics/Showoff.jl#31 with Ryu enabled to see if this persists? |
This is very curious and I have no idea what is happening. Also, the digit problem is so much more apparent now. I'm a little lost why this started happening recently, as I remember native ticks to be working fine. Perhaps matplotlib itself changed or something? I'm running
|
Perhaps @daschw has some ideas, I'm lost with this issue |
Details
I'd like to use
pyplot(ticks=:native)
so my ticks and grid lines will update when I zoom. It seems to do some floating point label weirdness though:When I use PyPlot directly, this doesn't happen:
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.6.8
Backend version (
]st -m
): v2.9.0Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: