gridmarthe.plot_nested_grid
- gridmarthe.plot_nested_grid(ds, ax=None, varname='charge', **kwargs)[source]
Usefull function to plot nested grids, keeping heterogeneous resolution
- Parameters:
ds (xr.Dataset) – the dataset MUST be a 2D array, with dims = x,y. In other words, you may need to sel z and time before plot, and you need to apply assign_coord()
ax (matplotlib axe, Optionnal.) – if provided, data are plotted on this axis, otherwise fig, ax instances will be created.
varname (str, Optionnal) – the variable to plot in dataset. Default is ‘charge’.
kwargs (optionnal.) – any keywords argument from xr.Dataset.plot.pcolormesh()
- Returns:
ax (matplotlib axis.)