Creates a 2D plot containing multiple lines with pretty shaded error bars.
Updated 13 Feb 2015

View License

This is a tool for plotting multiple lines with pretty shaded error bars.
It is an extension of the popular shadedErrorBar, by Rob Campbell, enabling plotting of multiple data lines with overlapping errorbars.
The main improvements are:
* Optimised for the plot defult renderer instead of openGL, which is known to cause problems, e.g., with logarithmic axes and not being able to save figures as vector graphics in the eps-format.
* Turns off legends for all elements (e.g. edges and shaded area), except for the main lines.
* By default the edges of overshadowed patch areas are plotted in an non-obtrusive manner so all error bars can be seen, but avoids cluttering of the plot.
* The patches are plotted in reverse order to make sure the first entry is "on top".

Cite As

Andreas Trier Poulsen (2024). mseb(x,y,errBar,lineProps,transparent) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Line Plots in Help Center and MATLAB Answers

Inspired by: raacampbell/shadedErrorBar

Inspired: errorshade, anomaly

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Slight changes made to calls to "plot" so colours can be defined by using both strings and RGB vectors.
Also updated file description on this page.

Updated calls to the repmat function from using the repmat(A,P1,P2,...,Pn) format, to using repmat(A,[P1,P2,...,Pn]). This was done in hopes of supporting older versions of Matlab.

Changed screenshot.