Shaded area plot

Plot two lines, then shade the area between those two lines.
10.4K Downloads
Updated 14 Feb 2008

View License

SHADEDPLOT draws two lines on a plot and shades the area between those lines. The function allows you to choose the color of the lines and the fill area.

The SHADEDPLOT function is simple and basic. Error checking on the inputs is not performed. Handles to the graphics objects are returned, allowing the user to customize the chart outside of this function if necessary.

Cite As

Dave Van Tol (2024). Shaded area plot (https://www.mathworks.com/matlabcentral/fileexchange/18738-shaded-area-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Distribution Plots in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0