Updated 17 Aug 2015
A Matlab function to fill selected areas in plots. Inspired by a function of the same name from the Python package Matplotlib. I didn't look at that code, this is my own initial implementation to achieve the functionality that I needed.
The file fill_between.m demonstrates it's usage. More elaborate instructions appear on GitHub https://github.com/drbenvincent/fill_between
I'll be using GitHub only to keep track of issues and pull requests.
Benjamin (2023). fill_between (https://github.com/drbenvincent/fill_between), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Shade area between two curves, Shade Anomaly, gtfill(x,y1,y2,n,c1,c2)
Inspired: SimOutUtils, anomaly
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
added acknowledgements to similar functions
added URL to GitHub page