bastibe / Violinplot-Matlab

Violin Plots for Matlab
https://mathworks.com/matlabcentral/fileexchange/170126-violinplot-matlab
BSD 3-Clause "New" or "Revised" License
252 stars 104 forks source link

Change order of x-axis #11

Open jic198 opened 5 years ago

jic198 commented 5 years ago

Hi Bastian. Thanks for this awesome function.

I was wondering if there is a way to change the order of x-axis. For the example in your README.md. How can I change the order from "England France Germany" to "Germany France England"? It seems I could use VIOLINPLOT(DATAMATRIX, CATEGORYNAMES). But you have to make sure each column has the same number of rows for DATAMATRIX, which is not the case for this example.

Please advise

bastibe commented 5 years ago

You can plot the individual Violins by themselves instead of going through voilinplot.

NicolasClairis commented 7 months ago

See also my answer here https://github.com/bastibe/Violinplot-Matlab/issues/61