Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efa385f

Browse files
committed
Remove mlab.inside_poly
1 parent 3c156d8 commit efa385f

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

doc/api/next_api_changes/2018-09-18-DS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
3838
- `mlab.is_closed_polygon`
3939
- `mlab.poly_between`
4040
- `mlab.poly_below`
41+
- `mlab.inside_poly`
4142
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,22 +2667,3 @@ def evaluate(self, points):
26672667
return result
26682668

26692669
__call__ = evaluate
2670-
2671-
2672-
##################################################
2673-
# Code related to things in and around polygons
2674-
##################################################
2675-
@cbook.deprecated("2.2")
2676-
def inside_poly(points, verts):
2677-
"""
2678-
*points* is a sequence of *x*, *y* points.
2679-
*verts* is a sequence of *x*, *y* vertices of a polygon.
2680-
2681-
Return value is a sequence of indices into points for the points
2682-
that are inside the polygon.
2683-
"""
2684-
# Make a closed polygon path
2685-
poly = Path(verts)
2686-
2687-
# Check to see which points are contained within the Path
2688-
return [idx for idx, p in enumerate(points) if poly.contains_point(p)]

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
demean, detrend, detrend_linear, detrend_mean, detrend_none,
234234
exp_safe,
235235
frange,
236-
identity, inside_poly, ispower2, isvector, l1norm,
236+
identity, ispower2, isvector, l1norm,
237237
l2norm, log2, movavg, norm_flat,
238238
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rms_flat,
239239
window_hanning, window_none)

0 commit comments

Comments
 (0)