csep.utils.plots.plot_basemap

csep.utils.plots.plot_basemap(basemap, extent, ax=None, coastline=True, borders=False, linecolor='black', linewidth=True, grid=False, grid_labels=False, set_global=False, show=False, projection=<cartopy.crs.PlateCarree object>, apprx=False, central_latitude=0.0)[source]

Wrapper function for multiple cartopy base plots, including access to standard raster webservices

Parameters
  • basemap (str) – Possible values are: stock_img, stamen_terrain, stamen_terrain-background, google-satellite, ESRI_terrain, ESRI_imagery, ESRI_relief, ESRI_topo, ESRI_terrain, or webservice link (see examples in csep.utils.plots._get_basemap(). Default is None

  • extent (list) – [lon_min, lon_max, lat_min, lat_max]

  • show (bool) – Flag if the figure is displayed

  • set_global (bool) – Display the complete globe as basemap

  • coastline (str) – Flag to plot coastline. default True,

  • borders (bool) – Flag to plot country borders. default False,

  • linewidth (float) – Line width of borders and coast lines. default 1.5,

  • linecolor (str) – Color of borders and coast lines. default ‘black’,

  • grid (bool) – Draws a grid in the basemap

  • grid_labels (bool) – Annotate grid values

  • apprx (bool) – If true, approximates transformation by setting aspect ratio of axes based on middle latitude

  • central_latitude (float) – average latitude from plotting region

Returns

matplotlib.pyplot.ax object