rcatool.plot.plots.plot_map

rcatool.plot.plots.plot_map(ax, x, y, data, clevs, cmap, norm, mesh, filled, **map_kwargs)[source]

Producing a map plot

Parameters:
  • ax (Axis object) – Axis generated in ‘map_setup’ function

  • data (numpy array) – 2D data array to plot

  • x (numpy arrays) – Arrays of lat/lon coordinates

  • y (numpy arrays) – Arrays of lat/lon coordinates

  • clevs (List/array) – Contour levels

  • cmap (string) – Color map. See http://matplotlib.org/users/colormaps.html for more information.

  • norm (Boundary norm object) – Normalize data to [0,1] to use for mapping colors

  • 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

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

Returns:

cs

Return type:

Contour plot object