obspy.imaging.maps._plot_cartopy_into_axes

_plot_cartopy_into_axes(ax, lons, lats, size, color, bmap=None, labels=None, projection='global', resolution='l', continent_fill_color='0.8', water_fill_color='1.0', colormap=None, marker='o', title=None, adjust_aspect_to_colorbar=False, **kwargs)[source]

Creates a (or adds to existing) cartopy plot with a data point scatter plot in given axes.

See plot_cartopy() for details on most args/kwargs.

Parameters
  • ax (matplotlib.axes.Axes) – Existing matplotlib axes instance, optionally with previous cartopy plot (see bmap kwarg).

  • bmap (matplotlib.axes.Axes) – Axes instance in provided matplotlib Axes ax to reuse. If specified, any kwargs regarding the cartopy plot setup will be ignored (i.e. projection, resolution, continent_fill_color, water_fill_color).

Return type

matplotlib.collections.PathCollection

Returns

Matplotlib path collection (e.g. to reuse for colorbars).