mseb(x,y,errBar,lin​eProps,transparent)

Creates a 2D plot containing multiple lines with pretty shaded error bars.
4.6K Downloads
Updated Fri, 13 Feb 2015 13:50:07 +0000

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) (https://www.mathworks.com/matlabcentral/fileexchange/47950-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
Categories
Find more on Line Plots in Help Center and MATLAB Answers
Acknowledgements

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
1.3.0.0

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.

1.2.0.0

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.

1.1.0.0

Changed screenshot.

1.0.0.0