pyguymer3.geo.add_map_background¶
- pyguymer3.geo.add_map_background(ax, /, *, debug=True, extent=None, name='natural-earth-1', resolution='medium0512px')[source]¶
Add an image of a map as a background to a Cartopy axis.
- Parameters:
axis (cartopy.mpl.geoaxes.GeoAxesSubplot) – the axis to add the background image to
debug (bool, optional) – print debug statements
extent (list of floats) – for high-resolution images, save time by specifying the extent that is to be added
name (str, optional) – the name of the image in the database
resolution (str, optional) – the resolution of the image in the database
Notes
If the specified image cannot be found then a default map will be used instead. See the Cartopy documentation of background_img() and the Cartopy documentation of stock_img() .
Copyright 2017 Thomas Guymer [1]
References