Changing colors on individual box in 'boxchart' function using matrix of columns?

9 views (last 30 days)
As the question is stated. It seems as the 'GroupByColor' option is for changing colors in a series plot, however my matrix is a 22 x 2, with each column representing a single box. How do i change the color of each column?
The BoxFaceColor option only allow me to change color of both columns...
Br,
Thomas

Answers (1)

Mandar
Mandar on 18 Aug 2022
Another user has a similar query and accepted the provided solution. Refer to the link below for a possible workaround.
Link: https://www.mathworks.com/matlabcentral/answers/122426-change-color-of-a-box-in-boxplot

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!