pingwyn.plot_grid
- pingwyn.plot_grid(ax, grid, slice=0, cbar_ax=None, mask=None, **kwargs)
Plot a grid slice of a specified index.
- Parameters:
ax (matplotlib.axes.Axes) – The axis to draw the grid slice onto
grid (pingwyn.Grid) – The grid object from which to take a slice
slice (int, optional) – The index of the grid object to take the slice from, by default 0.
cbar_ax (matplotlib.axes.Axes, optional) – The axis to draw the colorbar into. Defaults to current ax.
**kwargs – Any additional keyword arguments provided will be passed onto ax.imshow() and ax.set(), whichever is applicable. Note: providing title, aspect, extent, vmin, vmax, origin or cmap as keyword arguments will override some behaviour of this function.