Skip to content

Commit b356196

Browse files
sameberenzschmide
authored andcommitted
handle NAN in intensity data for plotting
(cherry picked from commit 8ababea)
1 parent 7f8b524 commit b356196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

climada/util/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ def geo_im_from_array(array_sub, geo_coord, var_name, title,
229229
list_coord = to_list(num_im, geo_coord, 'geo_coord')
230230

231231
if 'vmin' not in kwargs:
232-
kwargs['vmin'] = np.min(array_sub)
232+
kwargs['vmin'] = np.nanmin(array_sub)
233233
if 'vmax' not in kwargs:
234-
kwargs['vmax'] = np.max(array_sub)
234+
kwargs['vmax'] = np.nanmax(array_sub)
235235
if axes is None:
236236
_, axes = make_map(num_im, proj=proj)
237237
axes_iter = axes

0 commit comments

Comments
 (0)