Closed SteffenPL closed 3 years ago
Seems related to this change: https://github.com/JuliaPlots/Plots.jl/pull/3320
Hi @SteffenPL, thanks for the bug report. Could you try the PR #493 out?
I am using Plots and I have the same problem as @SteffenPL. I have Plots updated and using Julia 1.6.1. I am not using any other package.
I have a function with a two segments, one of which is represented by NaNs. I need this construction because the function is supposed to have a kink. One year ago, I produced a large set of plots with this type of construction and there was no problem at all.
This year, I am getting the error above, I have made it smaller in my REPL by adding a label and a color to the the NaN segment. But the students might get confused by this trick (they are not studying computation). In the end I just keep getting the annoying message:
Warning: Indices Base.OneTo(1) of attribute `linecolor` does not match data indices 1:21.
In https://juliastats.org/TimeSeries.jl/stable/plotting/ the plots don't have the correct colors anymore and it shows the following warning:
I suspect that something on the Plots.jl side changed, since it also poped up suddenly in my own code.