Skip to content

Commit 94bc45d

Browse files
added edgecolor
1 parent 3ddc5d9 commit 94bc45d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

climada/util/plot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,9 @@ def geo_im_from_array(
473473
# handle NaNs in griddata
474474
color_nan = "gainsboro"
475475
if np.any(np.isnan(grid_im)):
476-
no_data_patch = mpatches.Patch(color=color_nan, label="NaN")
476+
no_data_patch = mpatches.Patch(
477+
facecolor=color_nan, edgecolor="black", label="NaN"
478+
)
477479
axis.legend(
478480
handles=[no_data_patch] + axis.get_legend_handles_labels()[0],
479481
loc="lower right",

0 commit comments

Comments
 (0)