Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tobac/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ def plot_mask_cell_track_static_timeseries(


def map_tracks(
track, axis_extent=None, figsize=None, axes=None, untracked_cell_value=-1
track, axis_extent=None, figsize=None, axes=None, untracked_cell_value=-1, color=""
):
"""Plot the trajectories of the cells on a map.

Expand All @@ -2045,6 +2045,10 @@ def map_tracks(
Value of untracked cells in track['cell'].
Default is -1.

color : str, optional
Color of all lines. Default is "", which MatPlotLib
defaults as the T10 color cycle.

Returns
-------
axes : cartopy.mpl.geoaxes.GeoAxesSubplot
Expand Down Expand Up @@ -2072,7 +2076,7 @@ def map_tracks(
if cell == untracked_cell_value:
continue
track_i = track[track["cell"] == cell]
axes.plot(track_i[lon_dim], track_i[lat_dim], "-")
axes.plot(track_i[lon_dim], track_i[lat_dim], color + "-")
if axis_extent:
axes.set_extent(axis_extent)
axes = make_map(axes)
Expand Down
Loading