-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
[BUG] using vline() with DateTime as x-axis screws up the y-axis labels #4660
Comments
Can you try to do the same thing, just changing the values of the y values and x values, and using the hline!() function? |
Then I think I've found the problem. That's just some typo in the code that writes the vline!() command. Here's a link for a fork of Plots.jl, where I've changed what every I thought was the problem: https://github.com/ygol55/Plots.jl, so you could run that with git |
Thanks for the effort. Unfortunately, using Plots from your fork is still producing still the same output. |
Do you mind sending some link to the code? That's better testing it likewise. |
Here a minimal code that reproduces the issue:
I hope this helps better for testing. |
I think I've narrowed down the origin of this bug after fork the version where this bug didn't exist. The bug started after this change by @daschw has been done: I did fork https://github.com/pablosaa/Plots.jl and dismissed the changes in the link above, and the bug disappears. |
It seems that the problem was with the spesific treat_y_as_x, which was only used on vline but not on hline? |
not really, it is in
that fix the bug #4538 but unfortunately created this bug with DataTime in x-axis now. In earlier versions those two lines were only like this:
|
Any progress on fixing this bug? |
No progress, unfortunately. Still the origin of this issue is on the modifications done by solving another issue #4660 (comment) |
Details
I found an apparently new bug using vline and DateTime format in the x-axis:
plot(rs[:time], tir[:IRT], size=(800,300))
but when adding a vline as :
vline!([DateTime(2020,4,15, 12)])
it changes the y-axis label as shown below:
I can confirm that I've worked with vline() and DateTime as x-axis data format regularly before and it used to work flawlessly before updating Plots.jl to v1.38.4 , for Julia Version 1.8.0
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.38.4
Backend version (
]st -m <backend(s)>
): GR v0.71.5Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: