polaris.tasks.ocean.mixed_layer_eddies.viz.plot_surface_salinity
- polaris.tasks.ocean.mixed_layer_eddies.viz.plot_surface_salinity(ax, ds_mesh, ds, title, vmin, vmax)[source]
Plot the surface salinity of one snapshot on a panel of a figure, without a colorbar so that panels can share one
- Parameters:
ax (matplotlib.axes.Axes) – The panel to plot on
ds_mesh (xarray.Dataset) – The horizontal mesh
ds (xarray.Dataset) – Model output at one time, with
salinitytitle (str) – The title of the panel
vmin (float) – The lower limit of the color scale
vmax (float) – The upper limit of the color scale
- Returns:
collection (matplotlib.collections.PolyCollection) – The plotted cells, for a shared colorbar