slv.basemap.SaltLake#

class slv.basemap.SaltLake(bbox=(-112.25, 40.4, -111.62, 40.95), ax=None, tiles=None, zoom=11, figsize=(6, 7), latlon_ticks=False, attribution=True)[source]#

A cartopy map of the Salt Lake Valley.

Parameters:
  • bbox (tuple) – (W, S, E, N) of the map in degrees; defaults to slv.domain.MAP_BBOX.

  • ax (cartopy GeoAxes, optional) – Draw on this map axis (e.g. a subplot) instead of a new figure.

  • tiles ("terrain", cartopy tiler or None) – Background tiles; “terrain” is Stadia’s stamen_terrain (stadia_tiles()). A new figure then uses the tiler’s projection.

  • zoom (int) – Tile zoom level.

  • figsize (tuple) – Size of a new figure.

  • latlon_ticks (bool) – Label the axes in degrees.

  • attribution (bool) – Credit the tile source in the corner of the map.

Attributes

fig

The figure holding the map.

Methods

add_borders([level, borders])

State or county boundaries (load_borders()).

add_inset([extent, bounds, color, projection])

A locator map of the western US with the map's area marked.

add_interstates([interstates])

Interstate highways (load_interstates()).

add_inventory(inventory, **kwargs)

A lair inventory (Inventory.plot; e.g. time=, sector=, alpha=).

add_legend([loc])

A legend of the layers added so far, in the order they were added.

add_mesowest([stations, label])

MesoWest stations as crosses; stations defaults to active UUNET stations (load_mesowest()).

add_north_arrow([xy, fontsize])

A north arrow (▲ N) in axes coordinates.

add_points(points[, marker, size, color, label])

Point markers from a GeoDataFrame or a frame with longitude / latitude columns.

add_population([population, cmap, vmax, ...])

Block-group population density (people km⁻²) with a colorbar panel.

add_sites(sites[, site_config, labels, ...])

Measurement sites (site_config rows) as open circles.

add_trax([lines, trax, colors, linewidth, label])

TRAX lines by their letters (R, G, B, S), in UTA's line colours.