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

Skip to content

Commit f2272fb

Browse files
committed
Remove mlab.distances_along_curve
1 parent f5e43a2 commit f2272fb

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

lib/matplotlib/mlab.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,16 +2844,3 @@ def vector_lengths(X, P=2., axis=None):
28442844
"""
28452845
X = np.asarray(X)
28462846
return (np.sum(X**(P), axis=axis))**(1./P)
2847-
2848-
2849-
@cbook.deprecated('2.2')
2850-
def distances_along_curve(X):
2851-
"""
2852-
Computes the distance between a set of successive points in *N* dimensions.
2853-
2854-
Where *X* is an *M* x *N* array or matrix. The distances between
2855-
successive rows is computed. Distance is the standard Euclidean
2856-
distance.
2857-
"""
2858-
X = np.diff(X, axis=0)
2859-
return vector_lengths(X, axis=1)

lib/matplotlib/pylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
from matplotlib.mlab import (
232232
amap, base_repr, binary_repr, csv2rec,
233233
demean, detrend, detrend_linear, detrend_mean, detrend_none,
234-
distances_along_curve, exp_safe,
234+
exp_safe,
235235
frange,
236236
identity, inside_poly, is_closed_polygon, ispower2, isvector, l1norm,
237237
l2norm, log2, movavg, norm_flat,

0 commit comments

Comments
 (0)