Skip to content

Commit

Permalink
type in timeseries plot legend
Browse files Browse the repository at this point in the history
  • Loading branch information
zweihuehner committed Jan 2, 2025
1 parent 7f617b6 commit 8480c30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tide_analytics/tidal_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,13 +831,13 @@ def plot_current_speed(self, ax = None,
else:
ax.hlines(y=tide.mean_flood_current, xmin=tide.low_tide_time, xmax=tide.high_tide_time, alpha=0.5, linewidth=0.7, color='red', linestyle="dashed")
if tide.max_ebb_current is not None:
label = "MaxECF"
label = "MaxECS"
if label not in legend_handles:
legend_handles[label] = ax.hlines(y=tide.max_ebb_current, xmin=tide.high_tide_time, xmax=tide.low_tide_2_time, alpha=0.5, linewidth=0.7, color='green', linestyle="solid", label=label)
else:
ax.hlines(y=tide.max_ebb_current, xmin=tide.high_tide_time, xmax=tide.low_tide_2_time, alpha=0.5, linewidth=0.7, color='green', linestyle="solid")
if tide.mean_ebb_current is not None:
label = "MeanECF"
label = "MeanECS"
if label not in legend_handles:
legend_handles[label] = ax.hlines(y=tide.mean_ebb_current, xmin=tide.high_tide_time, xmax=tide.low_tide_2_time, alpha=0.5, linewidth=0.7, color='green', linestyle="dashed", label=label)
else:
Expand Down

0 comments on commit 8480c30

Please sign in to comment.