Conditionally colored line plot
by Matt Tearle
15 Feb 2011
Plots (2D line) graph split into two colors above and below a given threshold value
|
Watch this File
|
| File Information |
| Description |
Plots vectors x & y using one color for when y is greater than a given threshold value, and another color when y is less than the threshold.
You can optionally specify any standard formatting string that PLOT accepts (eg 'rx:' for a red dotted line with cross markers).
The plotting follows the standard MATLAB PLOT approach of linearly interpolating between data values. The coloring/linestyle changes at y = threshold, even on the interpolated line. |
| Acknowledgements |
This file inspired
Conditionally Colored Plot (Ccplot).
|
| MATLAB release |
MATLAB 7.11 (R2010b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 15 Jun 2012 |
Jeremy
|
|
|
|
Contact us