Revision: 7396
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7396&view=rev
Author:   jdh2358
Date:     2009-08-06 11:53:23 +0000 (Thu, 06 Aug 2009)

Log Message:
-----------
removed pylab load and save

Modified Paths:
--------------
    branches/v0_99_maint/CHANGELOG
    branches/v0_99_maint/doc/api/api_changes.rst
    branches/v0_99_maint/lib/matplotlib/pylab.py

Modified: branches/v0_99_maint/CHANGELOG
===================================================================
--- branches/v0_99_maint/CHANGELOG      2009-08-05 19:49:43 UTC (rev 7395)
+++ branches/v0_99_maint/CHANGELOG      2009-08-06 11:53:23 UTC (rev 7396)
@@ -1,7 +1,12 @@
+
 2009-08-03 Fixed boilerplate.py so it doesn't break the ReST docs. - JKS
 
-======================================================================
 
+2009-08-03 pylab no longer provides a load and save function.  These
+           are available in matplotlib.mlab, or you can use
+           numpy.loadtxt and numpy.savetxt for text files, or np.save
+           and np.load for binary numpy arrays. - JDH
+
 2009-07-31 Tagging 0.99.0.rc1 at 7314 - MGD
 
 2009-07-30 Add set_cmap and register_cmap, and improve get_cmap,

Modified: branches/v0_99_maint/doc/api/api_changes.rst
===================================================================
--- branches/v0_99_maint/doc/api/api_changes.rst        2009-08-05 19:49:43 UTC 
(rev 7395)
+++ branches/v0_99_maint/doc/api/api_changes.rst        2009-08-06 11:53:23 UTC 
(rev 7396)
@@ -18,9 +18,14 @@
 .. _configobj: http://www.voidspace.org.uk/python/configobj.html
 .. _`enthought.traits`: http://code.enthought.com/projects/traits
 
-Changes beyond 0.98.x
-=====================
+Changes in 0.99
+======================
 
+* pylab no longer provides a load and save function.  These are
+  available in matplotlib.mlab, or you can use numpy.loadtxt and
+  numpy.savetxt for text files, or np.save and np.load for binary
+  numpy arrays.
+
 * User-generated colormaps can now be added to the set recognized
   by :func:`matplotlib.cm.get_cmap`.  Colormaps can be made the
   default and applied to the current image using

Modified: branches/v0_99_maint/lib/matplotlib/pylab.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/pylab.py        2009-08-05 19:49:43 UTC 
(rev 7395)
+++ branches/v0_99_maint/lib/matplotlib/pylab.py        2009-08-06 11:53:23 UTC 
(rev 7396)
@@ -236,6 +236,9 @@
      base_repr, binary_repr, log2, ispower2, \
      rec_append_fields, rec_drop_fields, rec_join, csv2rec, rec2csv, isvector
 
+import matplotlib.mlab as mlab
+import matplotlib.cbook as cbook
+
 from numpy import *
 from numpy.fft import *
 from numpy.random import *
@@ -248,3 +251,25 @@
 import numpy as np
 import numpy.ma as ma
 
+def load(*args, **kwargs): 
+    raise  NotImplementedError(load.__doc__)                   
+load.__doc__ = """\
+    pylab no longer provides a load function, though the old pylab
+    function is still available as matplotlib.mlab.load (you can refer
+    to it in pylab as "mlab.load").  However, for plain text files, we
+    recommend numpy.loadtxt, which was inspired by the old pylab.load
+    but now has more features.  For loading numpy arrays, we recommend
+    numpy.load, and its analog numpy.save, which are available in
+    pylab as np.load and np.save.
+    """
+
+
+def save(*args, **kwargs): 
+    raise  NotImplementedError(save.__doc__)                   
+save.__doc__ = """\
+    pylab no longer provides a save function, though the old pylab
+    function is still available as matplotlib.mlab.save (you can still
+    refer to it in pylab as "mlab.save").  However, for plain text
+    files, we recommend numpy.savetxt.  For saving numpy arrays,
+    we recommend numpy.save, and its analog numpy.load, which are
+    available in pylab as np.save and np.load."""


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to