Enhancement to errorbar() plot
Updated 6 Jul 2004
Combination of plot() and errorbar_plus() can solve many prolems with the original errorbar() and can provide some more useful flexibilities. With errorbar_plus, horizontal plot of errors is possible. Different markers can be used instead of the usual "I " shaped bar. The wrong annotation of legend() when plotting with 2 or more data sets can be avoided with appropriate code arrangement.
Users are welcomed to add some other controls such as line style to errorbar.
Usage and example:
- see comments in errorbar_plus.m file, or
- download into matlab directory and type "help errorbar_plus"
Chuong Nguyen (2023). Enhancement to errorbar() plot (https://www.mathworks.com/matlabcentral/fileexchange/5383-enhancement-to-errorbar-plot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Errorbars >
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.