box plot axis problem
显示 更早的评论
Hello Everybody,
How can I change X axis in boxplot figure? Unfortunately, my code doesn't work in "set(gca,'Xtick',[950:5:1020])".
See my code below:
%
figure;
global hb;
edgep = [952.5:5:1025];
hb=boxplot(p_w1(2:12,:),edgep,'whisker',100,'Widths',0.2);
set(hb(:,:),'linewidth',1,'linestyle','-');
set(gca,'Xtick',[950:5:1020]);
2 个评论
Adam
2015-5-15
What do you mean by "doesn't work"? Does it give an error or just not update the ticks as you expect?
I don't have your p_w1 variable so can't run the code to check quickly.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Box Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!