Skip to content

Commit

Permalink
update plot labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Santonia27 committed Nov 6, 2024
1 parent 81ecfcd commit 76b59f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flood_adapt/object_model/tipping_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def _make_html(self): # Make html
x=metric_data.loc[idx_max + 1 :, "sea level"],
y=metric_data.loc[idx_max + 1 :, "Value"],
mode="lines+markers",
name=f"Interpolated: {metric[0]}",
name="Extrapolated",
line={"color": "Green", "dash": "dash"},
)
)
Expand All @@ -275,7 +275,7 @@ def _make_html(self): # Make html
x=metric_data.loc[idx_min - 1 : idx_min, "sea level"],
y=metric_data.loc[idx_min - 1 : idx_min, "Value"],
mode="lines+markers",
name=f"Interpolated: {metric[0]}",
name="Extrapolated",
line={"color": "Green", "dash": "dot"},
)
)
Expand All @@ -289,7 +289,7 @@ def _make_html(self): # Make html
],
y=[metric[1], metric[1]],
mode="lines",
name=f"{metric[0]} Threshold",
name="Threshold",
line={"color": "Red", "width": 3, "dash": "dash"},
)
)
Expand All @@ -312,7 +312,7 @@ def _make_html(self): # Make html
fig.update_layout(
title=f"Tipping Point Analysis for {self.attrs.name}",
xaxis_title="Sea Level Rise (m)",
yaxis_title=f"Tipping point metric: {metric[0]}",
yaxis_title=f"{metric[0]}",
)

# write html to results folder
Expand Down

0 comments on commit 76b59f8

Please sign in to comment.