mpas_analysis.shared.plot.plotting.plot_polar_comparison

mpas_analysis.shared.plot.plotting.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:
config : instance of ConfigParser

the configuration, containing a [plot] section with options that control plotting

Lons, Lats : float arrays

longitude and latitude arrays

modelArray, refArray : float arrays

model and observational or reference run data sets

diffArray : float array

difference between modelArray and refArray

colorMapSectionName : str

section name in config where color map info can be found.

fileout : str

the file name to be written

title : str, optional

the subtitle of the plot

plotProjection : str, optional

Basemap projection for the plot

modelTitle : str, optional

title of the model panel

refTitle : str, optional

title of the observations or reference run panel

diffTitle : str, optional

title of the difference (bias) panel

cbarlabel : str, optional

label on the colorbar

titleFontSize : int, optional

size of the title font

figsize : tuple of float, optional

the size of the figure in inches. If None, the figure size is (8, 22) if vertical == True and (22, 8) otherwise.

dpi : int, optional

the number of dots per inch of the figure, taken from section plot option dpi in the config file by default

vertical : bool, optional

whether the subplots should be stacked vertically rather than horizontally