tams.plot_tracked

Contents

tams.plot_tracked#

tams.plot_tracked(cs, *, alpha=0.25, background='countries', label='id', add_colorbar=False, cmap=None, 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. Only allowed if there is more than one unique time.

  • cmap (str or Colormap, optional) – Colormap, used to indicate the time of each CE relative to the min and max time in the frame. The default is the 0.2–0.85 section of 'GnBu', such that the earliest CEs are light green. Note that the upper bound will be used if there is only one unique time.

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

  • ax (Axes or GeoAxes, optional) – 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.