pingwyn.graph.plot_grid

Plot a grid slice of a specified index.

param ax:

The axis to draw the grid slice onto

type ax:

matplotlib.axes.Axes

param grid:

The grid object from which to take a slice

type grid:

pingwyn.Grid

param slice:

The index of the grid object to take the slice from, by default 0.

type slice:

int, optional

param cbar_ax:

The axis to draw the colorbar into. Defaults to current ax.

type cbar_ax:

matplotlib.axes.Axes, optional

param **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.