xoa.core.plot.create_map

Contents

xoa.core.plot.create_map#

xoa.core.plot.create_map(extent, figsize=None, projection=None, transform=None, title=None, **kwargs)[source]#

Create a decorated cartopy map

Parameters:
  • extent (list) – Extent [xmin, xmax, ymin, ymax] in degrees, as returned by xoa.geo.get_extent()

  • figsize (None, tuple) – Figure size in inches, which defaults to the plot.map_figsize option

  • projection (None, str, cartopy.crs.CRS) – Projection of the map, or its name as accepted by get_projection(), which defaults to the one of the background layer given by get_layer_projection(), else to Mercator

  • transform (None, cartopy.crs.CRS) – Coordinate system of the extent, which defaults to PlateCarree

  • title (None, str)

  • kwargs – Extra parameters are passed to decorate_map()

Returns:

  • matplotlib.figure.Figure

  • cartopy.mpl.geoaxes.GeoAxes