Code covered by the BSD License
-
barweb(barvalues, errors, wid...
% Usage: handles = barweb(barvalues, errors, width, groupnames, bw_title, bw_xlabel, bw_ylabel, bw_colormap, gridstatus, bw_legend, error_sides, legend_type)
-
View all files
barweb (BARgraph With Error Bars)
by Bolu Ajiboye
20 Apr 2006
(Updated 01 Oct 2009)
Plots a fully customizable grouped bar graph with error bars
|
Watch this File
|
| File Information |
| Description |
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)
Syntax:
barweb(barvalues, errors, width, groupnames, bw_title, bw_xlabel, bw_ylabel, bw_colormap, gridstatus, bw_legend) |
| Acknowledgements |
This submission has inspired the following:
BarTwoYaxis, barwebpairs (pair bars within groups and between groups), Create Healthy Looking Error Bars
|
| MATLAB release |
MATLAB 7.1.0 (R14SP3)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 24 Apr 2006 |
Revised based upon M-Lint Code Report.
No functional revisions...code has just been spaced for better readability. |
| 24 Apr 2006 |
Revised based upon M-Lint Code Report.
No functional revisions...code has just been spaced for better readability. |
| 24 Apr 2006 |
Updated based upon the M-Lint code report. No functional changes were made. The code was just spaced out for easier reading and comprehension. |
| 07 Dec 2006 |
Updated to return handles to different aspects of plot |
| 28 Sep 2009 |
1) Now able to plot 1 vs 2-sided barwebs
2) Now able to show legend along x-axis or on standard plot
3) Made code more robust by using bar children features rather than calculating x positions manually
4) other small fixes |
| 01 Oct 2009 |
Changed the usage information |
|
Contact us at files@mathworks.com