JuliaPlots / StatsPlots.jl

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

How to specify fillcolor for violin plots? #539

Open iabraham opened 1 year ago

iabraham commented 1 year ago

How can one specify the fillcolor for violin plots?

violin(rand(100,4), label=false, fillcolor=palette([:purple, :green], 4))

produces four violins that are all purple rather than going through the palette.

This is on Julia 1.9.1 and StatsPlots v0.15.5.

iabraham commented 1 year ago

In case someone chances by this issue while looking for this feature: there is a hacky workaround until StatsPlots properly supports this feature - attaching a PDF of a Pluto notebook until such a time as when Github will accept .jl files.

fillviolin.pdf