File Exchange

image thumbnail


version (5 KB) by Holger Hoffmann
Plot a probability density function with colored area and indicating extremes


Updated 01 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 (2021). histplot (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Holger Hoffmann

This routine was used for the following publication (please see the supplement):

Hoffmann H, Zhao G, van Bussel LGJ, Enders A, Specka X, Sosa C, Yeluripati J, Tao F, Constantin J, Raynal H, Teixeira E, Grosz B, Doro L, Zhao Z, Wang E, Nendel C, Kersebaum K-C, Haas E, Kiese R, Klatt S, Eckersten H, Vanuytrecht E, Kuhnert M, Lewan E, Rötter R, Roggero PP, Wallach D, Cammarano D, Asseng S, Krauss G, Siebert S, Gaiser T, Ewert F, 2015. Variability of effects of spatial climate data aggregation on regional yield simulation by crop models. Clim Res 65, 53-69.

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!