Use with Plots.jl

using Plots
using ProudPalettes

The palettes defined in PROUD_PALETTES can be used to set colors in Plots.jl plots.

For example,

x = 0:1e-2:2π
plot(x, cos, color = PROUD_PALETTES[:rainbow][1])
plot!(x, sin, color = PROUD_PALETTES[:rainbow][2])
Example block output

They can also be used to set the palette for a whole plot. This can be simpler than setting colors one plot at a time.

palette = PROUD_PALETTES[:rainbow]
p = plot(palette = palette)

y = @. sin(x) - 1
for (i, _) in enumerate(palette)
    plot!(x, y .+ i, ribbon = 0.4)
end

p
Example block output

This page was generated using Literate.jl.