How to plot bar chart with multiple bar including error bar and individual points
8 次查看(过去 30 天)
显示 更早的评论
Hi all,
I am not sure if this is possible in Matlab, but I want to add error bars and individual data points to the following graph (see jpeg attached).
My issue lies in the fact that I have multiple y values for the same x value (so I vertcat the y values to make this one), and also, I have a variable number of datapoints to add to each bar, so the same technique won't work. Is it possible to do this in matlab?
Secondly, is it possible to add error bars to each y bar?
Any help is greatly appreciated!
0 个评论
回答(1 个)
Abhisek Pradhan
2020-6-2
The following link has an answer to plotting a bar with multiple y values for a single x value.
And the below link has an answer to creating error bars on bar graph with groups.
https://in.mathworks.com/matlabcentral/answers/400315-how-to-add-error-bars-on-bar-graph-with-groups
Hope the combination of both would help you to solve the problem.
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!