John,

In your list, "load" is duplicated.

It would be nice if numpy.rank could be deprecated, since it seems to be an alias for ndim (which is more descriptive and less ambiguous). We could avoid the name clash by using "matrixrank" for the mlab version.

I suggest that for every name that conflicts with a numpy name, the docstring should make this explicit.

On a more strategic note: what do you see as the future of mlab, and its place in pylab? Should mlab contain every neat function we can think of, and if so, should all of these be exposed in the pylab namespace? Do we have or need any quality-control standards for these functions? Is there a point in exposing more of mlab now than we have in the past? Probably so, but we might want to be conservative about it.

I am copying this to the devel list; it seems worth wider exposure.

Eric

John Hunter wrote:

## ···

On Nov 9, 2007 12:09 AM, Eric Firing <efiring@...229...> wrote:

from pyplot import *

from matplotlib.mlab import *for mlab I would be inclined to use an explicit list for the sake of

documentation and clarity, if nothing else.One of my colleagues using svn just got bitten because she was using

pylab load and save, which have slightly different semantics than

numpy's. In particular, we have an optional converter dictionary. It

would be nice to reconcile these (Travis has already borrowed a fair

amount from mlab which is why so many funcs are deprecated).Here is my candidate list, which I will commit shortly but let me know

if you have a problem with any of it:from matplotlib.mlab import load, window_hanning, window_none, conv,

detrend, demean, \

detrend_mean, detrend_none, detrend_linear, entropy, normpdf, levypdf, \

find, longest_contiguous_ones, longest_ones, prepca, prctile,

prctile_rank, \

center_matrix, rk4, bivariate_normal, get_xyz_where,

get_sparse_matrix, dist, \

dist_point_to_segment, segments_intersect, fftsurr, liaupunov, movavg, \

save, load, slopes, stineman_interp, inside_poly, poly_below,

poly_between, exp_safe, \

amap, rms_flat, l1norm, l2norm, norm_flat, frange,

diagonal_matrix, identity, \

base_repr, binary_repr, log2, ispower2, fromfunction_kw, rem,

norm, orth, rank, sqrtm,\

mfuncC, approx_real, rec_append_field, rec_drop_fields, rec_join,

csv2rec, rec2csv