From 21967f92b17e4d78d3236c96584b158ce9d79653 Mon Sep 17 00:00:00 2001 From: tobiasmarke Date: Fri, 11 Oct 2024 15:30:31 +0200 Subject: [PATCH] Change RH plotting style --- mwrpy/plots/generate_plots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mwrpy/plots/generate_plots.py b/mwrpy/plots/generate_plots.py index 1bd76c6..47f78cf 100644 --- a/mwrpy/plots/generate_plots.py +++ b/mwrpy/plots/generate_plots.py @@ -506,9 +506,9 @@ def _plot_colormesh_data(ax, data_in: np.ndarray, name: str, axes: tuple, nc_fil if name == "relative_humidity": assert isinstance(data_in, ma.MaskedArray) data[data_in.mask] = np.nan - data[data > 1.0] = 1.0 + data[data > 1.0] = 1.001 data[data < 0.0] = 0.0 - data_in[data_in > 1.0] = 1.0 + data_in[data_in > 1.0] = 1.001 data_in[data_in < 0.0] = 0.0 data *= 100.0 data_in *= 100.0