raacampbell/shadedErrorBar
Editor's Note: This file was selected as MATLAB Central Pick of the Week
shadedErrorBar is a MATLAB function that creates a continuous shaded error region around a line rather than discrete bars. The error region can either be specified explicitly or calculated on the fly based upon function handles. The appearance of the plot can be modified via input argumets and/or the handles of the returned plot objects. You will need OpenGL to get transparency to work.
There are detailed examples along with example images on the GitHub page: https://github.com/raacampbell/shadedErrorBar
Cite As
Rob Campbell (2022). raacampbell/shadedErrorBar (https://github.com/raacampbell/shadedErrorBar), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Tags
Acknowledgements
Inspired: superbar, shplot, errorshade, Murphy Diagrams, shade_significant_timepoints, fillPlot(mat,varargin), boundedline.m, Mean square displacement analysis of particles trajectories, Shaded Error Bar YY, mseb(x,y,errBar,lineProps,transparent), gQSPSim
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.