[Numpy-discussion] how to tell if a point is inside a polygon

Rob Hetland hetland@tamu....
Thu Oct 16 14:28:05 CDT 2008

On Oct 16, 2008, at 1:54 PM, John Hunter wrote:

> It is already in matplotlib
> In [1]: import matplotlib.nxutils as nx
> In [2]: nx.pnpoly
> Out[2]: <built-in function pnpoly>
> In [3]: nx.points_inside_poly
> Out[3]: <built-in function points_inside_poly>
> but one of should add it to the FAQ!

I did not know that very useful thing.  But now I do.  This is solid  
proof that lurking on the mailing lists makes you smarter.



Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
phone: 979-458-0096, fax: 979-845-6331

More information about the Numpy-discussion mailing list