barwitherr(errors,varargin)
This is a very simple extension of MatLab's bar function to add error bars.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Martina Callaghan (2026). barwitherr(errors,varargin) (https://in.mathworks.com/matlabcentral/fileexchange/30639-barwitherr-errors-varargin), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: superbar
General Information
- Version 1.12.0 (3.02 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.12.0 | Bug fix to update graphics for multiple plots on same figure. Otherwise the error bars overlay on each other instead of being bar-specific for the second group. |
||
| 1.11.0 | Errors always defined in terms of upper and lower, even if symmetric. |
||
| 1.10.0 | Recent comments addressed via bug fix, appearance update and extra optional output parameter. |
||
| 1.9.0 | Only return handle if requested. |
||
| 1.8.0 | Returns handle as recommended by Eric in submission comments |
||
| 1.7.0 | Bug fix: xOrder should be specified when second argument for standard bar function is a width/property. |
||
| 1.6.0 | Now allows asymmetric errors on 1D data. |
||
| 1.3.0 | This version allows for asymmetric errors as requested. |
||
| 1.2.0 | Now accounts for the fact that if x-values are also supplied, they may not be in ascending order. |
||
| 1.0.0 |