Skip to content
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

errorline! does not work with Dates x-axis #545

Open
dmetivie opened this issue Oct 18, 2023 · 0 comments
Open

errorline! does not work with Dates x-axis #545

dmetivie opened this issue Oct 18, 2023 · 0 comments

Comments

@dmetivie
Copy link

I tried adding erroline! to a plot with Dates as x-axis but it does not work.

using Dates, StatsPlots

x = DateTime(2000):Hour(1):DateTime(2000,1,4)
x_last = x[end-72:end]
y = randn(length(x))
Y = randn(length(x_last), 100)

plot(x, y)
# plot!(x_last, Y[:,1]) # works
errorline!(x_last, Y) # do not work

Just errorline(x_last, Y) works but as soon as another plot is added (or it is added) the result is wrong.
plot_51

I tried looking at the code but could not see what is wrong (maybe it is just a Date+Plot issue? But plot!(Date, y) works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant