errorshade

A nuanced method of plotting uncertainty.
690 Downloads
Updated 27 Jul 2016

View License

It's common to use a shaded region or error bars to depict uncertainty in plots. However, shaded regions and error bars tend to have definite extents, which rarely represents the reality of uncertainty. In truth, gaussian uncertainty tapers gradually, and should be depicted accordingly.

Too often we try to depict a binary world in which all values are either within the range of uncertainty, or outside the range of uncertainty. This function is meant to show that all errors are *not* contained within the arbitrary bounds of one standard deviation of the noise. To accomplish this, the errorshade function creates a semitransparent RGB image of a specified color, whose opacity scales directly with a gaussian distribution of uncertainty.

Cite As

Chad Greene (2024). errorshade (https://www.mathworks.com/matlabcentral/fileexchange/58335-errorshade), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!

errorshade/html/

Version Published Release Notes
1.1.0.0

Fixed a typo in calculation of Gaussian distribution, added moving average option.
Image update.

1.0.0.0