rcatool.plot.plots.make_raster_plot
- rcatool.plot.plots.make_raster_plot(data, grid=None, clevs=None, norm=None, cmap='viridis', **rs_kwargs)[source]
Create a raster plot
- Parameters:
grid (AxesGrid object) – returned from the ‘image_grid_setup’ function
data (List) – List with 2D array(s) of data
cmap (string/list) – String or list with strings of predefined Matplotlib colormaps. Defaults to ‘viridis’
clevs (Iterable data structure) – Consisting of lists with defined contour levels; e.g. (np.arange(1,10,2), [0,2,4,6,8]), [np.arange(100,step=5)]*3
norm (BoundaryNorm object) – Object generated from matplotlib.colors.BoundaryNorm function. Generate a colormap index based on discrete intervals.
**rs_kwargs (keyword arguments) – arguments (key=value) that can be used in pyplot.imshow See matplotlib.org for more information
- Returns:
axs (Axes objects) – The axes objects created for each plot
rasters (Plot objects) – The raster plot objects created for each plot