xlabel in box plot

조회 수: 8 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by