Y-axis in subplots of Boxplot
51 次查看(过去 30 天)
显示 更早的评论
Hi
I am making several subplots in 1 figure using Boxplot and subplot. But how can I adjust the y-axis, so that in each boxplot the y-axis goes from e.g. 0 to 120, with ticks at 0, 10, 20 etc.?
Thanks for your support
Jarno
0 个评论
采纳的回答
Grzegorz Knor
2011-12-7
X = rand(100,25)*120;
subplot(2,1,1)
boxplot(X)
ylim([0 120])
set(gca,'YTick',0:10:120)
subplot(2,1,2)
boxplot(X,'plotstyle','compact')
ylim([0 120])
set(gca,'YTick',0:10:120)
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!