-
Notifications
You must be signed in to change notification settings - Fork 105
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 set positions of the plots #61
Comments
I think you cannot do it with violinplot, but you can do it with Violin which is the function called by violinplot. At least, that's how I managed to get rid of that problem. In your example above, I guess I would do something like that:
|
This is good, but is it possible to use non-integer positions? |
True I had the same problem because the variable "pos" is used multiple times in the script and has to be an integer because of the interdependencies so I guess that the easy answer is no, but you can always change your labels using xticks and xticklabels afterwards (at least that's how I avoided dealing with that) but maybe the author of the function @bastibe can propose a better solution |
I suppose the problem is that |
No idea on my side, but as I said using xticks and xticklabels Matlab functions allows to change the x.label afterwards. Another option would be to display the half violins to have them on the same tick. |
In
boxplot
there is a parameterpositions
to put the boxes at specified locations. For exampleHow to do similar thing using violin plot?
The text was updated successfully, but these errors were encountered: