File Exchange

image thumbnail

Enhancement to errorbar() plot

version (933 Bytes) by Chuong Nguyen
Better alternative to errorbar() for flexibilities and avoidance of error with legend().

1 Download

Updated 06 Jul 2004

No License

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"

Cite As

Chuong Nguyen (2021). Enhancement to errorbar() plot (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Hongyang Cheng

read examples

Adrien Dejeant


Farzad Alavi

The main advantage of 'errobar_plus' function, which improves the original 'errorbar' function, is to make drawing horizontal error bars possible. Using the original function, drawing horizontal errorbars is possible by changing camera viewpoint; also simultaneous drawing of horizontal and vertical error bars, which I tried to do, is not possible. This m-file, removing this problem, makes 'errobar_plus' a powerful tool for drawing error bars.

Renger Jellema

Too flexible towards dimensions of input. Please add some error handling.

li lin

quite neat! thanks

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: errbar, superbar

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!