How do I plot only the lower error bars?
6 次查看(过去 30 天)
显示 更早的评论
I am trying to plot only the lower error bars. Here is the way I am currently plotting them. Any suggestions?
residual = N - y_new;
errorbar(x_new,y_new,residual)
1 个评论
Russel Burgess
2021-3-14
Not the prettiest method as it leaves the bars in but you can set the lower and upper side individually, i.e.:
errorbar(x_new,y_new,residual,zeros(size(residual)))
回答(2 个)
Star Strider
2021-3-14
Try this:
errorbar(x_new,y_new,residual,[])
It specifies that the lower error bar is to be plotted and the upper error baar is not.
0 个评论
dpb
2021-3-14
residual = N - y_new;
errorbar(x_new,y_new,residual,[])
Input arguments for four inputs are:
errorbar(x,y,neg,pos)
If only three arguments, then the third is the error magnitude in both directions.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Errorbars 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!