Hi All,

I've added a function to complement nxutils.points_inside_poly (which takes a sequence of points but just one polygon)  called point_inside_polys  (which takes one point but a sequence of polygons). All of the polygons must have the same number of vertices though.  I find it useful for finding out which poly conatins a point of interest to map back to the original array for pcolor, pcolormesh etc.

Patch is attached, comments welcome. Tested with 0.87.5 on OSX, w/numpy

Cheers,
Seth



Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.

Attachment: nxutils.patch
Description: 3528132788-nxutils.patch

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to