Python Forum

Full Version: hatching not working properly with matplotlib
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have 2 arrays arr1 contains correlation values of between -1 to 1
arr2 contains nans and 1's but same shape as arr1
arr1 = 180 * 360
arr2 = 180 * 360

I want to plot arr2 on arr1 as a hatch like this

plt.contourf(lon,lat,arr1)
plt.pcolor(lon,lat, arr2, hatch = '...', alpha=0)

the problem here is that some of the colors in the hatched are covered by the contour plot of arr1

How can I make the hatches apear on top without being blocked by the contours of arr1
maybe it has something to do with alpha=0 ?
I turned it off but same problem
did you have a look here and played with edgecolors= ?