easysnowdata.plotting.finish_map#

easysnowdata.plotting.finish_map(ax: Any, crs: Any = None, *, scalebar: bool | dict[str, Any] = True, graticule: bool | dict[str, Any] = True, basemap: Any = False, axis_labels: bool = True, warn_geographic: bool = True) → Any[source]#

Apply the map conventions to ax: aspect, labels, scale bar, graticule, basemap.

Parameters:
  • ax – Axes something has already been drawn on, so the extent is known.

  • crs – The CRS of the data on the axes (a pyproj CRS or anything it accepts). None is treated as geographic.

  • scalebar – True/False, or a dict of keyword arguments for add_scalebar() / add_graticule().

  • graticule – True/False, or a dict of keyword arguments for add_scalebar() / add_graticule().

  • basemap – False (default), True for DEFAULT_BASEMAP, or a provider name / object; see add_basemap().

  • axis_labels – Label the axes longitude [°] / latitude [°] or easting [m] / northing [m] from the CRS.

  • warn_geographic – Warn when the data are in degrees: the axes then get a latitude-corrected aspect (1 / cos(latitude)) so shapes are not stretched, but distances still vary across the map.

Returns:

matplotlib.axes.Axes

Examples using easysnowdata.plotting.finish_map#

Countries, states, counties and admin units

Countries, states, counties and admin units

Glacier outlines: Randolph Glacier Inventory 7.0 and 6.0

Glacier outlines: Randolph Glacier Inventory 7.0 and 6.0

Natural Earth map layers: lakes, rivers, glaciers, places

Natural Earth map layers: lakes, rivers, glaciers, places

Basins: HUC, HydroBASINS and GRDC

Basins: HUC, HydroBASINS and GRDC

HLS surface reflectance (Landsat and Sentinel-2)

HLS surface reflectance (Landsat and Sentinel-2)

PlanetScope surface reflectance and UDM2 (Planet)

PlanetScope surface reflectance and UDM2 (Planet)

Sentinel-2 L2A surface reflectance

Sentinel-2 L2A surface reflectance

Digital elevation models: Copernicus, NASADEM, SRTM, 3DEP, ALOS, GEDTM30

Digital elevation models: Copernicus, NASADEM, SRTM, 3DEP, ALOS, GEDTM30

Areas of interest, time ranges and the catalog

Areas of interest, time ranges and the catalog