hatching not working properly with matplotlib - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: hatching not working properly with matplotlib (/thread-20106.html) |
hatching not working properly with matplotlib - Staph - Jul-28-2019 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 RE: hatching not working properly with matplotlib - ThomasL - Jul-28-2019 maybe it has something to do with alpha=0 ? RE: hatching not working properly with matplotlib - Staph - Jul-28-2019 I turned it off but same problem RE: hatching not working properly with matplotlib - ThomasL - Jul-28-2019 did you have a look here and played with edgecolors= ? |