On Mon, Mar 3, 2008 at 8:51 AM, Troels Kofoed Jacobsen
<[EMAIL PROTECTED]> wrote:
> Hi everybody
>
> I have modified the load function (in matplotlib.mlab) to be able to load
> strings e.g for use as xticks. Anyone willing to test and comment, 'cause
> when i'm done i'll send it as a patch.
>
> The usage is as follows:
>
> from reload import load
> s,A,B=reload('data.dat',usecols=(1,2),unpack=True,string=0)

You probably want to be using matplotlib.mlab.csv2rec, which already
supports heterogeneous types (including strings and datetime).  load
is meant to handle only float output, and will probably become
deprecated in favor of numpy's loadtxt.  If you want to enhance load
you should concentrate your efforts there -- numpy.io.loadtxt is just
a copy plus enhancement of matplotlib.mlab.load.

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to