JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
436 stars 88 forks source link

errorline! not cycling palette #523

Closed alancummings closed 1 year ago

alancummings commented 1 year ago

If I run the sample code at https://docs.juliaplots.org/latest/generated/statsplots/#ErrorLine the colors do not cycle correctly.

To reproduce: I start with a fresh julia REPL using StatsPlots and copy paste the example from the link above

Additional info: I modified the example to create a plot with p = plot(), then use errorline! for all 3 series. In this case all 3 plots are orange

I am running julia version 1.8.5 in a VSCode type environment (under code-server: https://github.com/coder/code-server) on an AWS amazon linux 2 instance

BeastyBlacksmith commented 1 year ago

CC: @CMGreenspon

CMGreenspon commented 1 year ago

Okay, it seems like the GR backend changed how it counts the number of primary series. I've implemented a fix to make it explicitly count the number of primary series instead of relying on the GR counter.

BeastyBlacksmith commented 1 year ago

Would be good to know on which version of Plots this behaved differently. I don't think it is related to GR

alancummings commented 1 year ago

I have Plots v1.38.3 and StatsPlots v0.15.4