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

Skip to content

Commit f5e43a2

Browse files
committed
Remove mlab.path_length
1 parent c01d262 commit f5e43a2

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
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
@@ -29,4 +29,5 @@ in Matplotlib 2.2 has been removed. See below for a list:
2929
- `mlab.fftsurr`
3030
- `mlab.offset_line`
3131
- `mlab.quad2cubic`
32+
- `mlab.path_length`
3233
- `mlab.donothing_callback`

lib/matplotlib/mlab.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,16 +2857,3 @@ def distances_along_curve(X):
28572857
"""
28582858
X = np.diff(X, axis=0)
28592859
return vector_lengths(X, axis=1)
2860-
2861-
2862-
@cbook.deprecated('2.2')
2863-
def path_length(X):
2864-
"""
2865-
Computes the distance travelled along a polygonal curve in *N* dimensions.
2866-
2867-
Where *X* is an *M* x *N* array or matrix. Returns an array of
2868-
length *M* consisting of the distance along the curve at each point
2869-
(i.e., the rows of *X*).
2870-
"""
2871-
X = distances_along_curve(X)
2872-
return np.concatenate((np.zeros(1), np.cumsum(X)))

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
frange,
236236
identity, inside_poly, is_closed_polygon, ispower2, isvector, l1norm,
237237
l2norm, log2, movavg, norm_flat,
238-
path_length, poly_below, poly_between,
238+
poly_below, poly_between,
239239
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rms_flat,
240240
vector_lengths,
241241
window_hanning, window_none)

0 commit comments

Comments
 (0)