barweb (BARgraph With Error Bars)
Updated 1 Oct 2009
barweb.m calls the BAR and ERRORBAR MATLAB functions to produce bar graphs with error bars. The resultant graph is fully customizable, from group naming to legend inclusion to colormap setting. It assumes an m-by-n y-input matrix and plots m groups of n bars. The errorbar matrix must be setup the same way as the barvalues matrix (i.e. same dimensionality, matched values must have same indexes)
barweb(barvalues, errors, width, groupnames, bw_title, bw_xlabel, bw_ylabel, bw_colormap, gridstatus, bw_legend)
Bolu Ajiboye (2023). barweb (BARgraph With Error Bars) (https://www.mathworks.com/matlabcentral/fileexchange/10803-barweb-bargraph-with-error-bars), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: superbar, BarTwoYaxis, Create Healthy Looking Error Bars, barwebpairs (pair bars within groups and between groups), pierremegevand/errorbar_groups
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Changed the usage information
1) Now able to plot 1 vs 2-sided barwebs
Updated to return handles to different aspects of plot