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.)
Holger Hoffmann (2021). histplot (https://www.mathworks.com/matlabcentral/fileexchange/53316-histplot), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
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.