From: <ds...@us...> - 2008-06-22 09:09:40
|
Revision: 5624 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5624&view=rev Author: dsdale Date: 2008-06-21 06:28:57 -0700 (Sat, 21 Jun 2008) Log Message: ----------- improve docstring for mlab.load to clarify for bugreport 1901536 Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/mlab.py Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2008-06-21 13:09:07 UTC (rev 5623) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2008-06-21 13:28:57 UTC (rev 5624) @@ -1237,14 +1237,14 @@ skiprows is the number of rows from the top to skip usecols, if not None, is a sequence of integer column indexes to - extract where 0 is the first column, eg usecols=(1,4,5) to extract + extract where 0 is the first column, eg usecols=[1,4,5] to extract just the 2nd, 5th and 6th columns unpack, if True, will transpose the matrix allowing you to unpack into named arguments on the left hand side t,y = load('test.dat', unpack=True) # for two column data - x,y,z = load('somefile.dat', usecols=(3,5,7), unpack=True) + x,y,z = load('somefile.dat', usecols=[3,5,7], unpack=True) dtype, the array will have this dtype. default: numpy.float_ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |