Code covered by the BSD License  

Highlights from
Shaded area plot

5.0

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

Shaded area plot

by Dave Van Tol

 

13 Feb 2008 (Updated 14 Feb 2008)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
30 Mar 2008 freddy Rojas  
09 Jun 2008 Elena Gil  
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

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Dave Van Tol 22 Oct 2008 09:47:30
plotting Dave Van Tol 22 Oct 2008 09:47:30
plot Dave Van Tol 22 Oct 2008 09:47:30
graph Dave Van Tol 22 Oct 2008 09:47:30
chart Dave Van Tol 22 Oct 2008 09:47:30
shade Dave Van Tol 22 Oct 2008 09:47:30
shaded Dave Van Tol 22 Oct 2008 09:47:30
area Dave Van Tol 22 Oct 2008 09:47:30
area Jan 20 Jan 2009 07:14:04
shading Gautam Vallabha 17 Jun 2009 11:14:59
area Marc Bendtsen 06 May 2010 03:26:44
shade Marc Bendtsen 06 May 2010 03:26:49
shaded Marc Bendtsen 06 May 2010 03:26:50
area Erik Lee 23 Feb 2011 15:15:58
area Beni Setiawan 27 Feb 2011 03:00:38

Contact us at files@mathworks.com