Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 hatching not working properly with matplotlib
#1
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
Quote
#2
maybe it has something to do with alpha=0 ?
Quote
#3
I turned it off but same problem
Quote
#4
did you have a look here and played with edgecolors= ?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  hatching based of maximum of 3 different arrays Staph 1 166 Jun-24-2019, 02:42 PM
Last Post: ThomasL
  Try and Exception not properly working with xpath sumandas89 0 391 Aug-29-2018, 02:33 PM
Last Post: sumandas89
  Matplotlib not working akash124 2 995 May-06-2018, 01:05 PM
Last Post: killerrex
  import not working properly mepyyeti 5 932 Jan-18-2018, 07:08 AM
Last Post: metulburr

Forum Jump:


Users browsing this thread: 1 Guest(s)