Skip to content

Commit

Permalink
changes in NCL_coneff_11.py to support MPL changes to ContourSet
Browse files Browse the repository at this point in the history
  • Loading branch information
kafitzgerald committed Dec 12, 2024
1 parent 1a7da60 commit 16b58c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Gallery/Contours/NCL_coneff_11.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16b58c5

Please sign in to comment.