For Plots.jl
, is there a way to manually access/iterate through the default line color sequence? I know that in the latest matplotlib, it’s default sequence is labeled C0
, C1
, etc. Is there an analog here?
1 Like
palette(thm::Symbol)
returns an array of the default palette colors of a PlotTheme. So palette(:default)
returns an array of the default palette colors.
Within a plot command or recipe you can use an integer i
to access the i
th element of the default colors, e.g. plot(rand(10), color = 4)
.
2 Likes