Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify fillcolor for violin plots? #539

Open
iabraham opened this issue Jun 18, 2023 · 1 comment
Open

How to specify fillcolor for violin plots? #539

iabraham opened this issue Jun 18, 2023 · 1 comment

Comments

@iabraham
Copy link

iabraham commented Jun 18, 2023

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
Copy link
Author

iabraham commented Jun 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant