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

Skip to content

Commit 0010d18

Browse files
committed
Remove mlab.vector_lengths
1 parent f2272fb commit 0010d18

File tree

3 files changed

+1
-19
lines changed

3 files changed

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

lib/matplotlib/mlab.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2826,21 +2826,3 @@ def cross_from_above(x, threshold):
28262826
return ind+1
28272827
else:
28282828
return ind
2829-
2830-
2831-
##################################################
2832-
# Vector and path length geometry calculations
2833-
##################################################
2834-
@cbook.deprecated('2.2')
2835-
def vector_lengths(X, P=2., axis=None):
2836-
"""
2837-
Finds the length of a set of vectors in *n* dimensions. This is
2838-
like the :func:`numpy.norm` function for vectors, but has the ability to
2839-
work over a particular axis of the supplied array or matrix.
2840-
2841-
Computes ``(sum((x_i)^P))^(1/P)`` for each ``{x_i}`` being the
2842-
elements of *X* along the given axis. If *axis* is *None*,
2843-
compute over all elements of *X*.
2844-
"""
2845-
X = np.asarray(X)
2846-
return (np.sum(X**(P), axis=axis))**(1./P)

lib/matplotlib/pylab.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@
237237
l2norm, log2, movavg, norm_flat,
238238
poly_below, poly_between,
239239
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rms_flat,
240-
vector_lengths,
241240
window_hanning, window_none)
242241

243242
from matplotlib import cbook, mlab, pyplot as plt

0 commit comments

Comments
 (0)