From a1a246a0fb99c678d08493c995eda7ee17e71120 Mon Sep 17 00:00:00 2001 From: Sven Seeberg Date: Sun, 17 Mar 2024 20:01:18 +0100 Subject: [PATCH] Update plot title --- opendrift_leeway_webgui/simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendrift_leeway_webgui/simulation.py b/opendrift_leeway_webgui/simulation.py index 5674cd3..bab4b3b 100644 --- a/opendrift_leeway_webgui/simulation.py +++ b/opendrift_leeway_webgui/simulation.py @@ -294,8 +294,8 @@ def main(): end = start + timedelta(hours=args.duration) plt.title( - f"Leeway Simulation Object Type: {simulation.get_config('seed:object_type')}\n" - f" From {start.strftime('%d-%m-%Y %H:%M')} to {end.strftime('%d-%m-%Y %H:%M')} UTC" + f"Leeway Simulation Object Type: {simulation.leewayprop[args.object_type]['OBJKEY']}\n" + f" From {start.strftime('%Y-%m-%d %H:%M')} to {end.strftime('%d-%m-%Y %H:%M')} UTC" ) fig.text( 0,