|
From: <ds...@us...> - 2008-06-22 10:34:58
|
Revision: 5625
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5625&view=rev
Author: dsdale
Date: 2008-06-21 06:35:30 -0700 (Sat, 21 Jun 2008)
Log Message:
-----------
improve mlab.load docstring to address bug 1901536
Modified Paths:
--------------
branches/v0_91_maint/lib/matplotlib/mlab.py
Modified: branches/v0_91_maint/lib/matplotlib/mlab.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/mlab.py 2008-06-21 13:28:57 UTC (rev 5624)
+++ branches/v0_91_maint/lib/matplotlib/mlab.py 2008-06-21 13:35:30 UTC (rev 5625)
@@ -1236,14 +1236,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)
See examples/load_demo.py which exeercises many of these options.
"""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|