From ec563a3d3d442b0859c8554b241556833f8f4269 Mon Sep 17 00:00:00 2001 From: Katelyn FitzGerald <7872563+kafitzgerald@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:14:02 -0600 Subject: [PATCH] Update NCL_coneff_11.py to address matplotlib changes --- 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..cd1918ba6 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_edgecolor(colors[i % len(colors)]) +p.set_linewidth(0.) # Set linewidth of hatches plt.rcParams['hatch.linewidth'] = 2.5