Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions noaaplotter/utils/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down
Loading