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

Skip to content

Commit bca721f

Browse files
committed
Remove mlab.is_closed_polygon
1 parent 51ff2e0 commit bca721f

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
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
@@ -35,4 +35,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
3535
- `mlab.cross_from_above`
3636
- `mlab.cross_from_below`
3737
- `mlab.contiguous_regions` (use `.cbook.contiguous_regions` instead)
38+
- `mlab.is_closed_polygon`
3839
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,13 +2745,3 @@ def poly_between(x, ylower, yupper):
27452745
x = numpy.concatenate((x, x[::-1]))
27462746
y = numpy.concatenate((yupper, ylower[::-1]))
27472747
return x, y
2748-
2749-
2750-
@cbook.deprecated('2.2')
2751-
def is_closed_polygon(X):
2752-
"""
2753-
Tests whether first and last object in a sequence are the same. These are
2754-
presumably coordinates on a polygonal curve, in which case this function
2755-
tests if that curve is closed.
2756-
"""
2757-
return np.all(X[0] == X[-1])

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, is_closed_polygon, ispower2, isvector, l1norm,
236+
identity, inside_poly, ispower2, isvector, l1norm,
237237
l2norm, log2, movavg, norm_flat,
238238
poly_below, poly_between,
239239
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rms_flat,

0 commit comments

Comments
 (0)