How to change the size of error bar?
111 次查看(过去 30 天)
显示 更早的评论
I need to change the size of the vertical line of error bar. so I dont mean the size of cap like 'CapSize',18
0 个评论
采纳的回答
Star Strider
2020-1-16
I am not certain what you want.
Try this:
errs = rand(1,10);
x = 1:10;
y = randi([10 20],1,10);
figure
plot(x, y)
hold on
heb = errorbar(x, y, errs, '.');
hold off
grid
heb.LineWidth = 2;
The error bars and the caps are both linewidth=2 here, with everything else being the default properties.
6 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!