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 3ddc5d9 commit 94bc45dCopy full SHA for 94bc45d
climada/util/plot.py
@@ -473,7 +473,9 @@ def geo_im_from_array(
473
# handle NaNs in griddata
474
color_nan = "gainsboro"
475
if np.any(np.isnan(grid_im)):
476
- no_data_patch = mpatches.Patch(color=color_nan, label="NaN")
+ no_data_patch = mpatches.Patch(
477
+ facecolor=color_nan, edgecolor="black", label="NaN"
478
+ )
479
axis.legend(
480
handles=[no_data_patch] + axis.get_legend_handles_labels()[0],
481
loc="lower right",
0 commit comments