monet.plots.spatial

monet.plots.spatial(modelvar, **kwargs)

Create a simple spatial plot from an xarray object.

A convenience wrapper for xarray’s plot method with consistent styling.

Parameters:
  • modelvar (xarray.DataArray) – The data to plot spatially.

  • **kwargs – Additional keyword arguments passed to xarray’s plot method. If ‘ax’ is not provided, a new figure and axes will be created.

Returns:

The axes containing the plot.

Return type:

matplotlib.axes.Axes