Set scale of boxplots
12 次查看(过去 30 天)
显示 更早的评论
I'm plotting a load of boxplots, but some of them are plotting at different scales e.g. x10-4 vs x10-5 (see top left corner), how do I make the scale uniform?
0 个评论
采纳的回答
the cyclist
2024-5-4
% Make some pretend data
rng default
x = 1.e-5*rand(1000,16);
% Boxplot
boxplot(x)
% Fix the y-axis scale
ylim([0 1.e-4])
2 个评论
the cyclist
2024-5-4
You might also find the linkaxes function useful, depending on how you are doing your plotting. It will assign the axis limits dynamically, but ensure that they are shared between your plots.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!