Code covered by the BSD License  

Highlights from
Shaded area plot

5.0

5.0 | 3 ratings Rate this file 47 Downloads (last 30 days) File Size: 1.84 KB File ID: #18738
image thumbnail

Shaded area plot

by

 

13 Feb 2008 (Updated )

Plot two lines, then shade the area between those two lines.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
11 May 2012 Andres

really useful!

28 Jan 2010 J B

is there a way to shade between beween 2 lines in the vertical (ie y is the same, x varies)

ie.
shadedplot(x1, x2, y1)

instead of

shadedplot(x1, y1, y2

09 Jun 2008 Elena Gil  
30 Mar 2008 freddy Rojas  

Contact us