We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bc45d commit 01eb0bdCopy full SHA for 01eb0bd
climada/util/plot.py
@@ -375,6 +375,11 @@ def geo_im_from_array(
375
-------
376
cartopy.mpl.geoaxes.GeoAxesSubplot
377
378
+ Notes
379
+ -----
380
+ Data points with NaN or inf are plotted in gray. White regions correspond to
381
+ regions outside the convex hull of the given coordinates.
382
+
383
Raises
384
------
385
ValueError
@@ -472,7 +477,7 @@ def geo_im_from_array(
472
477
)
473
478
# handle NaNs in griddata
474
479
color_nan = "gainsboro"
475
- if np.any(np.isnan(grid_im)):
480
+ if np.any(np.isnan(x) for x in grid_im):
476
481
no_data_patch = mpatches.Patch(
482
facecolor=color_nan, edgecolor="black", label="NaN"
483
0 commit comments