def vector_lengths(X, P=2.0, axis=None):
 warnings.warn('vector_lengths has been moved to matplotlib.mlab -- please import it from there', DeprecationWarning)
 import matplotlib.mlab as mlab
 return mlab.vector_lengths(X, P=2.0, axis=axis)

def vector_lengths ( X , P = 2.0 , axis = None ) : warnings . warn ( 'vector_lengths has been moved to matplotlib.mlab -- please import it from there' , DeprecationWarning ) import matplotlib . mlab as mlab return mlab . vector_lengths ( X , P = 2.0 , axis = axis )
finds the length of a set of vectors in *n* dimensions .