tams.plot_tracked

Contents

tams.plot_tracked#

tams.plot_tracked(cs, *, alpha=0.25, background='countries', label='id', add_colorbar=False, cbar_kwargs=None, ax=None, size=4, aspect=None)#

Plot CEs at a range of times (colors) with CE group ID (MCS ID) identified.

Parameters
  • cs (geopandas.GeoDataFrame) – Tracked CEs (with MCS ID column).

  • alpha (float) – Alpha applied when plotting the CEs.

  • background ({"map", "countries", "none"}) – “map” uses Mercator projection Cartopy’s stock image. “countries” uses Mercator projection and adds Cartopy coastlines and country borders. “none” plots without projection or background. This setting is only relevant if ax is not provided.

  • label ({"id", "none"}) – “id”: label each CE with its MCS ID. “none”: don’t label CEs.

  • add_colorbar (bool) – Add colorbar with time info.

  • cbar_kwargs (dict | None) – Keyword arguments to pass to plt.colorbar.

  • ax (matplotlib.axes.Axes | None) – Axes to plot on. If not provided, a new figure is created. The figure size used is (size * aspect, size).

  • size (float) – Height of the figure (in inches) if ax is not provided.

  • aspect (float | None) – Figure width : height. If not provided, it is estimated using the total_bounds of cs.