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 second of four random vertices from being used. But I'm not sure why
plot(vertices[:, 0], vertices[:, 1], color=color)
seems to connect only two points for a line segment.
Can someone explain?
D.
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, False], [False, False]])
prevents the second of four random vertices from being used. But I'm not sure why
plot(vertices[:, 0], vertices[:, 1], color=color)
seems to connect only two points for a line segment.
A missing point is a gap in the line, by design. If you use markers, 3 points will be plotted, but there are only two adjacent points, so only one line segment.
Eric
···
Can someone explain?
D.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options