How to change x-axis with boxplot
조회 수: 30 (최근 30일)
이전 댓글 표시
I have boxplot like this
X = randn(100,82);
boxplot(X)
How to change the x-axis to only show the indices 20,40,60, and 80.
This code is not working
set(gca,'XTick',(20:20:80));
댓글 수: 0
채택된 답변
Voss
2022년 6월 26일
Like this?
X = randn(100,82);
boxplot(X)
xt = 20:20:80;
set(gca,'XTick',xt,'XTickLabel',xt);
Or like this?
xt = 20:20:80;
boxplot(X(:,xt))
set(gca,'XTickLabel',xt);
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!