On Mon, Aug 3, 2009 at 2:15 PM, John Hunter<jdh2...@gmail.com> wrote:

> This may have been Eric's change to clean up the pylab imports -- all
> the mlab imports come before the pylab imports.  Was this intentional?
>  My guess is not, since np.loadtxt is the replacement for pylab.load.
> I prefer to do what we are currently doing, which is issue the
> deprecation warning, but I wanted to at least find out if this change
> was intentional (I noticed it because it broke
> docs/pyplot/plotmap.py), which tries to load some basemap data:

Correction, I had confused myself for a minute thinking numpy.load was
the old numpy.load which handled plain text files, ie what became
loadtxt.  np.load and np.save are too important as regular numpy
functions, so I think now would be a good time to remove the mlab
versions from the pylab namespace.   The question is : how best to do
it?  Unfortunately, a lot of people are still using the old load/save
and the deprecation warnings are only in 0.99 but not 0.98 so we have
not done the typical deprecation cycle.

We could create a special purpose deprecation function in pylab which
raises a deprecation error: 'use np.loadtxt for plain text, np.load
for binary numpy arrays, or mlab.load for old pylab.load
compatability').  Ie, not have a functional load/save in the pylab
namespace at all.

JDH

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to