Here is my question
* value is a 2-d np.array(31 x 37) with value 0,1.
It shows like this:
Only plot the grid in blue color if the value == 1
value_mask = np.ma.masked_less(value[:,:],0.001)
pc =plt.pcolor(xx,yy,value_mask,alpha =1,facecolor = "pink",edgecolor = 'steelblue',zorder =3)
How to sum the amount of the contiguous "blue grid".
In this case, I mean the 1 upper right grid isolated from the majority will be ignored.
