Plot a probability density function with colored area and indicating extremes
Updated 1 Oct 2015

View License

This functions plots a estimated probability density (kernel smootthing) of data X with bandwidth b and indicating n extreme values. The design is following Rahmstorf et al. in Spektrum der Wissenschaft.
Suitable e.g. for showing extreme years in a distribution from a time series.
Please feel free to modify it (e.g. colormap, etc.)

Cite As

Holger Hoffmann (2024). histplot (https://www.mathworks.com/matlabcentral/fileexchange/53316-histplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Histograms in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Figure added