File Exchange

image thumbnail


version (179 KB) by Chad Greene
shaded line plots for anomalies


Updated 12 Apr 2021

View Version History

View License

UPDATE: THIS VERSION HAS BEEN DEPRECATED. There's nothing wrong with it, per se, but I'm no longer maintaining it. You'll find a better version in the Climate Data Toolbox for MATLAB:

This function simply plots shaded anomaly plots like the ones you might find in IPCC reports.

Cite As

Chad Greene (2021). anomaly (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)


jiashun luo

jiashun luo



Great tool!

One question, I do have x as a Class 'datetime' (like... 2018-01-17), but getting this error:

Error using datetime/horzcat (line 1286)
All inputs must be datetimes or date/time character
vectors or date/time strings.

Error in anomaly>intersections (line 290)
xy1 = [x1 y1];

Error in anomaly (line 115)
[xc,yc] = intersections(x,y,[x(1) x(end)],[base base]);
% intersections is a subfunction by Douglas Schwarz,
included below.

MATLAB Release Compatibility
Created with R2012b
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!