mpas_analysis.shared.plot.plot_polar_comparison¶
-
mpas_analysis.shared.plot.
plot_polar_comparison
(config, Lons, Lats, modelArray, refArray, diffArray, colorMapSectionName, fileout, title=None, plotProjection='npstere', latmin=50.0, lon0=0, modelTitle='Model', refTitle='Observations', diffTitle='Model-Observations', cbarlabel='units', titleFontSize=None, figsize=None, dpi=None, vertical=False)[source]¶ Plots a data set around either the north or south pole.
- Parameters
- configinstance of ConfigParser
the configuration, containing a [plot] section with options that control plotting
- Lons, Latsfloat arrays
longitude and latitude arrays
- modelArray, refArrayfloat arrays
model and observational or control run data sets
- diffArrayfloat array
difference between modelArray and refArray
- colorMapSectionNamestr
section name in
config
where color map info can be found.- fileoutstr
the file name to be written
- titlestr, optional
the subtitle of the plot
- plotProjectionstr, optional
Basemap projection for the plot
- modelTitlestr, optional
title of the model panel
- refTitlestr, optional
title of the observations or control run panel
- diffTitlestr, optional
title of the difference (bias) panel
- cbarlabelstr, optional
label on the colorbar
- titleFontSizeint, optional
size of the title font
- figsizetuple of float, optional
the size of the figure in inches. If
None
, the figure size is(8, 22)
ifvertical == True
and(22, 8)
otherwise.- dpiint, optional
the number of dots per inch of the figure, taken from section
plot
optiondpi
in the config file by default- verticalbool, optional
whether the subplots should be stacked vertically rather than horizontally