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
  How to continue code after .show() in matplotlib? jasper100125 1 103 Sep-09-2019, 02:44 AM
Last Post: luoheng
  Matplotlib : linewidth parameters Zopost 0 253 Aug-16-2019, 07:07 PM
Last Post: Zopost
  HX711&matplotlib problems olego 0 119 Jul-12-2019, 12:22 PM
Last Post: olego
  Matplotlib problem ift38375 0 138 Jul-02-2019, 02:55 PM
Last Post: ift38375
  Writing the Path to a file properly dcw9996 2 233 Jul-01-2019, 11:26 PM
Last Post: dcw9996
  hatching based of maximum of 3 different arrays Staph 1 163 Jun-24-2019, 02:42 PM
Last Post: ThomasL
  Matplotlib contour no data coordinates b4rtt 1 264 Jun-18-2019, 09:36 AM
Last Post: b4rtt
  Matplotlib ImportError robertinoc 4 359 Jun-14-2019, 09:11 AM
Last Post: snippsat
  Matplotlib animation problem Potatoez 1 376 May-21-2019, 03:58 PM
Last Post: Potatoez
  MatplotLib Sliders punksnotdead 4 355 May-18-2019, 08:45 PM
Last Post: punksnotdead

Forum Jump:


Users browsing this thread: 1 Guest(s)