Skip to content

Commit

Permalink
minor edits to plot_functions, needs more though
Browse files Browse the repository at this point in the history
  • Loading branch information
byersiiasa committed Jul 10, 2024
1 parent 15cf1e1 commit 6187ea0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rime/rime_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,13 +881,14 @@ def plot_maps_dashboard(
if ("model" in ds.attrs.keys()) and ("scenario" in ds.attrs.keys()):
model = ds.attrs["model"]
scenario = ds.attrs["scenario"]
# layout title
title_2 = f": {model}, {scenario}"

else:
model = "unknown"
scenario = "scenario"
title_2 = f": {i}"


if isinstance(layout_title, type(str)) == False:
layout_title = f"Climate impacts in {year} ({model}, {scenario})"
layout_title = f"Climate impacts in {year} {title_2}"

plot.opts(title=layout_title)

Expand Down

0 comments on commit 6187ea0

Please sign in to comment.