File Exchange

image thumbnail

Filled area plot

version 1.0.1 (639 KB) by Javier Montalt Tordera
Linear plot, with extra functionality for area filling.


Updated 21 Dec 2018

View License

This contribution provides functionality to create filled area 2D linear plots, with full control over where and how areas are drawn.

The function 'shade' inherits its calling syntax from MATLAB's built-in 'plot' function, which hopefully should make its use intuitive. Some additional parameters, in the form of name-value pairs, allow controlling the filling behaviour. A live script is provided with multiple examples of usage.

Please do report any problems or suggestions and I will do my best to help.

Cite As

Javier Montalt Tordera (2019). Filled area plot (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

One of the most easy-to-use and pragmatic function ever.
Thank Javier!

Joseph Mah





- Fixed a bug that caused this function to switch off the hold state of the axes object on which it was called.

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux