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

John Hunter jdh2358@gmail....
Thu Oct 16 13:54:48 CDT 2008

On Thu, Oct 16, 2008 at 1:25 PM, Rob Hetland <hetland@tamu.edu> wrote:
> This question gets asked about once a month on the mailing list.
> Perhaps pnpoly could find a permanent home in scipy?  (or somewhere?)
> Obviously, many would find it useful.

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!

More information about the Numpy-discussion mailing list