From aa913f0aaa19c958a3bbde3824d4d88fcc2fdb64 Mon Sep 17 00:00:00 2001 From: initze Date: Sun, 5 Jan 2025 15:12:22 +0100 Subject: [PATCH] fixed case sensitivity for monthly plot --- noaaplotter/utils/plot_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noaaplotter/utils/plot_utils.py b/noaaplotter/utils/plot_utils.py index 08b591b..4b2114f 100755 --- a/noaaplotter/utils/plot_utils.py +++ b/noaaplotter/utils/plot_utils.py @@ -12,7 +12,7 @@ # TODO: move to external file def setup_monthly_plot_props(information, anomaly): plot_kwargs = {} - if information == 'Temperature': + if information.lower() == 'temperature': plot_kwargs['cmap'] = 'RdBu_r' plot_kwargs['fc_low'] = '#4393c3' plot_kwargs['fc_high'] = '#d6604d' @@ -29,7 +29,7 @@ def setup_monthly_plot_props(information, anomaly): plot_kwargs['legend_label_above'] = 'Above freezing' plot_kwargs['legend_label_below'] = 'Below freezing' - elif information == 'Precipitation': + elif information.lower() == 'precipitation': plot_kwargs['fc_low'] = '#d6604d' plot_kwargs['fc_high'] = '#4393c3' if anomaly: