StatsPlots.jl icon indicating copy to clipboard operation
StatsPlots.jl copied to clipboard

How to specify fillcolor for violin plots?

Open iabraham opened this issue 1 year ago • 1 comments

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 avatar Jun 18 '23 15:06 iabraham

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

iabraham avatar Jun 23 '23 18:06 iabraham