plot_axes
- cosipy.postprocessing.field_plots.plot_cosipy_fields.plot_axes(ax, array, timestamp, topography=None, plot_type='contour', mean=False)[source]
Plots data for a specific time or as a daily mean.
- Parameters:
ax (Axes) – Target axis.
array (DataArray) – XYZ data for a single variable.
timestamp (str) – Date or datetime index of target data.
topography (DataArray) – Optional elevation data to plot contours. Default None.
plot_type (str) – Plot data as “contour” or “mesh”. Default “contour”.
mean (bool) – Plot daily mean instead of specific time. Default False.
- Returns:
Labelled contour or mesh plot of variable, with optional contours for topography.
- Raises:
ValueError – <plot_type> is an invalid plot type. Use ‘mesh’ or ‘contour’.
- Return type:
Axes