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 byxoa.geo.get_extent()figsize (None, tuple) – Figure size in inches, which defaults to the
plot.map_figsizeoptionprojection (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 byget_layer_projection(), else toMercatortransform (None, cartopy.crs.CRS) – Coordinate system of the extent, which defaults to
PlateCarreetitle (None, str)
kwargs – Extra parameters are passed to
decorate_map()
- Returns:
matplotlib.figure.Figure
cartopy.mpl.geoaxes.GeoAxes