xoa.plot.get_map_axes

Contents

xoa.plot.get_map_axes#

xoa.plot.get_map_axes(ax, extent, transform, map_kw, projection=None)[source]#

Create a map when there is no axes, or decorate the axes

Parameters:
  • ax (None, cartopy.mpl.geoaxes.GeoAxes) – Existing map axes, or None to create a new map with create_map()

  • extent (list) – Geographic extent as [xmin, xmax, ymin, ymax]

  • transform (cartopy.crs.CRS) – Coordinate system of the extent, used to decorate existing axes

  • map_kw (None, dict) – Parameters of create_map(), or of decorate_map() for existing axes

  • projection (None, str, cartopy.crs.Projection) – Default projection of a new map, which can be overridden in map_kw

Returns:

cartopy.mpl.geoaxes.GeoAxes