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

14 ビュー (過去 30 日間)
Thomas Lindhardt
Thomas Lindhardt 2022 年 8 月 15 日
コメント済み: Thomas Lindhardt 2022 年 8 月 19 日
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

回答 (1 件)

Mandar
Mandar 2022 年 8 月 18 日
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
  1 件のコメント
Thomas Lindhardt
Thomas Lindhardt 2022 年 8 月 19 日
This is using the function boxplot and they use vectors. I use boxchart and have my data stored in a matrix

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by