easier to understand

This commit is contained in:
Martin Diehl 2023-11-20 11:49:59 +01:00
parent d8baf3c754
commit 39dacbc972
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class Colormap(mpl.colors.ListedColormap):
""" """
mask = np.logical_not(np.isnan(field) if gap is None else mask = np.logical_not(np.isnan(field) if gap is None else
np.logical_or (np.isnan(field), field == gap)) # mask NaN (and gap if present) np.logical_or(np.isnan(field), field == gap)) # mask NaN (and gap if present)
l,r = (field[mask].min(),field[mask].max()) if bounds is None else \ l,r = (field[mask].min(),field[mask].max()) if bounds is None else \
(bounds[0],bounds[1]) (bounds[0],bounds[1])