monet.plots.make_spatial_plot
- monet.plots.make_spatial_plot(modelvar, m, dpi=None, plotargs={}, ncolors=15, discrete=False)
Create a basic spatial plot using imshow.
- Parameters:
modelvar (numpy.ndarray) – 2D model variable array to plot.
m (mpl_toolkits.basemap.Basemap) – Basemap instance for mapping.
dpi (int, optional) – Dots per inch for the figure. Higher values increase resolution.
plotargs (dict, default {}) – Additional arguments to pass to imshow. Common options include ‘cmap’, ‘vmin’, ‘vmax’, and ‘alpha’.
ncolors (int, default 15) – Number of discrete colors when using discrete colorbar.
discrete (bool, default False) – If True, use a discrete colorbar instead of a continuous one.
- Returns:
(figure, axes, colorbar, colormap, vmin, vmax) - figure: matplotlib Figure instance - axes: matplotlib Axes instance - colorbar: matplotlib Colorbar instance - colormap: matplotlib Colormap instance - vmin, vmax: minimum and maximum values for the colormap
- Return type: