Re: [Matplotlib-users] Masks

2010-02-18 Thread Eric Firing
David Arnold wrote: > All, > > In the code on: > > http://matplotlib.sourceforge.net/examples/api/bbox_intersect.html > > I think I've figured out that: > > vertices = (np.random.random((4, 2))-0.5)*6.0 > vertices = np.ma.masked_array(vertices, [[False, False], [True, True], > [False,

[Matplotlib-users] Masks

2010-02-17 Thread David Arnold
All, In the code on: http://matplotlib.sourceforge.net/examples/api/bbox_intersect.html I think I've figured out that: vertices = (np.random.random((4, 2))-0.5)*6.0 vertices = np.ma.masked_array(vertices, [[False, False], [True, True], [False, False], [False, False]]) prevents the sec