Python Forum
hatching not working properly with matplotlib
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
Reply
#2
maybe it has something to do with alpha=0 ?
Reply
#3
I turned it off but same problem
Reply
#4
did you have a look here and played with edgecolors= ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  File Handling not working properly TheLummen 8 566 Feb-17-2024, 07:47 PM
Last Post: TheLummen
  fpdf orientation not working properly KatMac 1 3,259 May-02-2021, 10:47 AM
Last Post: Pedroski55
Lightbulb Jupyter is not working properly brunolelli 3 2,931 Apr-23-2021, 03:22 AM
Last Post: Larz60+
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,162 Mar-11-2021, 10:52 AM
Last Post: buran
  file.write not working properly mnh001 11 4,337 Nov-09-2019, 10:20 PM
Last Post: mnh001
  hatching based of maximum of 3 different arrays Staph 1 1,687 Jun-24-2019, 02:42 PM
Last Post: ThomasL
  Try and Exception not properly working with xpath sumandas89 0 1,953 Aug-29-2018, 02:33 PM
Last Post: sumandas89
  Matplotlib not working akash124 2 5,485 May-06-2018, 01:05 PM
Last Post: killerrex
  import not working properly mepyyeti 5 4,321 Jan-18-2018, 07:08 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020