Boxchart(箱ひげ図)におけるペア間の幅を調節したい Adjust widths between each boxchart pairs
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
現在、画像のような箱ひげ図を作成しています。各ペア(赤と青)の幅をなくしたいのですが、どうすればよいでしょうか。factorgapという関数を用いたらできそうですが...。以下、コードです。よろしくお願いします。
tbl1 = readtable('file.csv');
ProtocolOrder = {'A','B','C','D','E'};%x軸の順を定義
boxchart(tbl1.Type,tbl1.RMS,'GroupByColor',tbl1.Side)%BoxChartの作成
b1 = boxchart(tbl1.Type,tbl1.RMS,'GroupByColor',tbl1.Side) %BoxChart格納
~以下書式に関しては省略~
yticks([0 100 200 300 400]);%y軸間隔を定義
b1(1).XTickLabel = [];x軸を空白
b1(2).XTickLabel = [];
legend
6 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur 調査と可視化 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!