*points* is a sequence of *x*, *y* points. *verts* is a sequence of *x*, *y* vertices of a polygon. Return value is a sequence of indices into points for the points that are inside the polygon.
(points, verts)
| 3759 | ################################################## |
| 3760 | @cbook.deprecated("2.2") |
| 3761 | def inside_poly(points, verts): |
| 3762 | """ |
| 3763 | *points* is a sequence of *x*, *y* points. |
| 3764 | *verts* is a sequence of *x*, *y* vertices of a polygon. |
| 3765 | |
| 3766 | Return value is a sequence of indices into points for the points |
| 3767 | that are inside the polygon. |
| 3768 | """ |
| 3769 | # Make a closed polygon path |
| 3770 | poly = Path(verts) |
| 3771 | |
| 3772 | # Check to see which points are contained within the Path |
| 3773 | return [idx for idx, p in enumerate(points) if poly.contains_point(p)] |
| 3774 | |
| 3775 | |
| 3776 | @cbook.deprecated("2.2") |
nothing calls this directly
no test coverage detected