Plot a probability density function with colored area and indicating extremes


Updated Thu, 01 Oct 2015 09:26:12 +0000

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 (2023). 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

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