Violinplot-Matlab icon indicating copy to clipboard operation
Violinplot-Matlab copied to clipboard

Changing color scheme of the plots

Open Adam-Krutsch opened this issue 3 years ago • 1 comments

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?

Adam-Krutsch avatar Apr 07 '22 22:04 Adam-Krutsch

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

bastibe avatar Apr 08 '22 06:04 bastibe