rcatool.plot.plots.make_map_plot

rcatool.plot.plots.make_map_plot(data, grid, lats, lons, mesh=False, filled=True, cmap=None, clevs=None, robust=None, norm=None, **map_kwargs)[source]

Producing map plots

Parameters:
  • data (array/list/tuple) – Array or list/tuple of 2D data array(s) to plot

  • grid (AxesGrid object) – Returned from the ‘map_setup’ function

  • lats (arrays/list of arrays) – Values of latitudes and longitudes needed for the map plotting. If different lats/lons should be used in the figure panels, these arrays should be provided in a list; [lons_1, lons_2, …].

  • lons (arrays/list of arrays) – Values of latitudes and longitudes needed for the map plotting. If different lats/lons should be used in the figure panels, these arrays should be provided in a list; [lons_1, lons_2, …].

  • mesh (boolean) – Whether to plot data as mesh. If false (default), contour plot is made.

  • filled (boolean) – Whether to color fill between contours or not. Defaults to True

  • cmap (string/list) – String or list with strings of predefined Matplotlib colormaps. For filled contour plots it 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

  • robust (string) – See gen_clevs function for info

  • norm (BoundaryNorm object) – Object generated from matplotlib.colors.BoundaryNorm function. Generate a colormap index based on discrete intervals.

  • **map_kwargs (keyword arguments) – arguments (key=value) that can be used in pyplot.contour/f (if mesh=False) or pcolormesh (if mesh=True)

Returns:

mplots – List with map plot instances

Return type:

List