-
Notifications
You must be signed in to change notification settings - Fork 251
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
fix order for Geom.violin #1079
Comments
Adding Scale.x_discrete(levels=df.colindex.names) did the trick, where df is the name of the DataFrame I'm plotting. Might be good to have a bit more about this in the documentation. |
We would be glad to merge a PR if you want to add an example to the docs! |
I'd be happy to do that, but I'm completely new to GitHub. Could someone else add the example below to the page http://gadflyjl.org/stable/lib/scales/scale_x_discrete.html#Scale.x_discrete-1?
using DataFrames |
I'm trying to create a violin plot from a DataFrame, with x=Col.index and y=Col.value. It works fine, except that the order of the columns is not preserved in the plot. Is there a way to fix the order? Thanks in advance!
The text was updated successfully, but these errors were encountered: