rcatool.plot.plots.map_setup

rcatool.plot.plots.map_setup(map_proj, map_extent, figsize=(12, 12), figshape=(1, 1), grid_lines=False, **grid_kwargs)[source]

Create a Cartopy crs object to be used in the overlaying of 2d plots.

Parameters:
  • map_proj (Cartopy map projection) – Generated from the ‘define_map_object’ function

  • map_extent (list/tuple) – Longitude/latitude values for map extent; [lon_start, lon_end, lat_start, lat_end]

  • figsize (tuple) – The requested size of figure object

  • figshape (tuple) – The requested shape (rows, columns) of figure panels

  • grid_lines (boolean) – Whether to plot grid lines (lat/lon) with values along the left and bottom axes. Default False.

  • **grid_kwargs (key word arguments) – Additional arguments provided to AxesGrid (See below for more info).

Returns:

  • fig – figure object

  • axgrid (list) – List with axes objects, with GeoAxes class, for each plot in figure

With AxesGrid and GeoAxes, a grid is created and corresponding axes are classified with GeoAxes. Read more about AxesGrid, and the available options, here: https://matplotlib.org/2.0.2/mpl_toolkits/axes_grid/users/overview.html

Examples of **kwargs with default values:

direction=”row”, axes_pad=0.02, add_all=True, share_all=False, label_mode=”L”, aspect=True, cbar_mode=None, cbar_location=”right”, cbar_size=”5%”, cbar_pad=None,