From 16b58c5eeae8ec28e0b32809e7461788a6f34435 Mon Sep 17 00:00:00 2001 From: Katelyn FitzGerald <7872563+kafitzgerald@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:51:24 -0500 Subject: [PATCH] changes in NCL_coneff_11.py to support MPL changes to ContourSet --- Gallery/Contours/NCL_coneff_11.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Gallery/Contours/NCL_coneff_11.py b/Gallery/Contours/NCL_coneff_11.py index 727349b4c..38a1acd9e 100644 --- a/Gallery/Contours/NCL_coneff_11.py +++ b/Gallery/Contours/NCL_coneff_11.py @@ -59,9 +59,8 @@ cmap='white') # Use white cmap to have a white background # Set the colors for the hatches -for i, collection in enumerate(p.collections): - collection.set_edgecolor(colors[i % len(colors)]) - collection.set_linewidth(0.) +p.set_edgecolors(colors) +p.set_linewidth(0.) # Set linewidth of hatches plt.rcParams['hatch.linewidth'] = 2.5