xlabel in box plot

5 ビュー (過去 30 日間)
Paulo Sousa
Paulo Sousa 2015 年 7 月 12 日
コメント済み: dpb 2020 年 4 月 30 日
Hello all, I need help concerning the xlabel in my box plot. I am using this (part of) code:
boxplot(AB, 'Labels',{'1','2','3','4','5','6','7','8','9','10','11','12'})
xlabel('X Y Z')
So, if possible, I need X under 1 2 3 4, Y under 5 6 7 8 and Z under 9 10 11 12 with X, Y and Z entered. Could anyone please help me with this subject?
Greetings, Paulo Sousa

回答 (1 件)

dpb
dpb 2015 年 7 月 12 日
Like
text([2.5:4:12].',-0.1*ones(3,1),['X';'Y';'Z'],'horizontal','center')
maybe?
  4 件のコメント
Matlaber
Matlaber 2020 年 4 月 30 日
can you make the text lable in italic?
dpb
dpb 2020 年 4 月 30 日
Look at the properties of the object -- 'FontStyle'

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

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by