bastibe / Violinplot-Matlab

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

Changing color scheme of the plots #36

Open Adam-Krutsch opened 2 years ago

Adam-Krutsch commented 2 years ago

I am using this code to graph paired data sets on the same figure and need to color the violins appropriately. I see that the algorithm currently rotates through seven different colors. How would I modify the code so that it would repeat the same color twice before moving on to the next one?

bastibe commented 2 years ago

You can either set each violin's color manually, or modify Matlab's default colororder.