Taylor diagram helper class
Plot model standard deviation and correlation to reference (data) sample in a single-quadrant polar plot, with r=stddev and theta=arccos(correlation).
Set up Taylor diagram axes, i.e. single quadrant polar plot, using mpl_toolkits.axisartist.floating_axes. refstd is the reference standard deviation to be compared to.
Add a line between two points [std1, corr1] and [std2, corr2]
Add constant centered RMS difference contours.
Add sample (stddev,corrcoeff) to the Taylor diagram. args and kwargs are directly propagated to the Figure.plot command.
Add a curved line with a radius of std between two points [std, corr1] and [std, corr2]
dataset - 3d array of the field to be plotted with shape (nT, nLon, nLat) lats - array of latitudes lons - array of longitudes fname - a string specifying the filename of the plot fmt - an optional string specifying the filetype, default is .png gridshape - optional tuple denoting the desired grid shape (nrows, ncols) for arranging
the subplots.
clabel - an optional string specifying the colorbar title ptitle - an optional string specifying plot title subtitles - an optional list of strings specifying the title for each subplot cmap - an string or optional matplotlib.colors.LinearSegmentedColormap instance
denoting the colormap
clevs - an optional list of ints or floats specifying contour levels nlevs - an optional integer specifying the target number of contour levels if
clevs is None
parallels - an optional list of ints or floats for the parallels to be drawn meridians - an optional list of ints or floats for the meridians to be drawn extend - an optional string to toggle whether to place arrows at the colorbar
boundaries. Default is ‘neither’, but can also be ‘min’, ‘max’, or ‘both’. Will be automatically set to ‘both’ if clevs is None.
rowlabels - a list of strings denoting labels for each row collabels - a list of strings denoting labels for each column fname - a string specifying the filename of the plot fmt - an optional string specifying the output filetype gridshape - optional tuple denoting the desired grid shape (nrows, ncols) for arranging
the subplots.
xlabel - an optional string specifying the x-axis title ylabel - an optional string specifying the y-axis title clabel - an optional string specifying the colorbar title ptitle - a string specifying the plot title subtitles - an optional list of strings specifying the title for each subplot cmap - an optional string or matplotlib.colors.LinearSegmentedColormap instance
denoting the colormap
clevs - an optional list of ints or floats specifying colorbar levels nlevs - an optional integer specifying the target number of contour levels if
clevs is None
subregions - a list of subRegion objects lats - array of latitudes lons - array of longitudes fname - a string specifying the filename of the plot fmt - an optional string specifying the filetype, default is .png ptitle - an optional string specifying plot title parallels - an optional list of ints or floats for the parallels to be drawn meridians - an optional list of ints or floats for the meridians to be drawn subregion_masks - optional dictionary of boolean arrays for each subRegion
for giving finer control of the domain to be drawn, by default the entire domain is drawn.
names - list of names for each evaluated dataset refname - The name of the reference dataset fname - a string specifying the filename of the plot fmt - an optional string specifying the filetype, default is .png gridshape - optional tuple denoting the desired grid shape (nrows, ncols) for arranging
the subplots.
ptitle - an optional string specifying the plot title subtitles - an optional list of strings specifying the title for each subplot pos - an optional string or tuple of float for determining
the position of the legend
results - a 3d array of time series times - a list of python datetime objects labels - a list of strings with the names of each set of data fname - a string specifying the filename of the plot fmt - an optional string specifying the output filetype gridshape - optional tuple denoting the desired grid shape (nrows, ncols) for arranging
the subplots.
xlabel - a string specifying the x-axis title ylabel - a string specifying the y-axis title ptitle - a string specifying the plot title subtitles - an optional list of strings specifying the title for each subplot label_month - optional bool to toggle drawing month labels yscale - optional string for setting the y-axis scale, ‘linear’ for linear
and ‘log’ for log base 10.
Sets the default colormap (eg when setting cmap=None in a function) See: http://matplotlib.org/examples/pylab_examples/show_colormaps.html for a list of possible colormaps. Appending ‘_r’ to a matplotlib colormap name will give you a reversed version of it.
| Parameters: | name (str) – The name of the colormap. |
|---|