Re: [Matplotlib-users] Importing Binary files

2007-02-08 Thread Matthew Brett
Hi, > > I want to import binary files generated from C/FORTRAN into matplotlib for > > plotting. > > Can this be done using 'load'? > > If you are using SciPy, scipy.io has a few functions which may > help. scipy.io.fromfile, for example. Ah - just to be clear, for scipy 0.5.2, scipy.io.fromfile

Re: [Matplotlib-users] Importing Binary files

2007-02-07 Thread Matthew Brett
Hi, > if it's just a block of bytes in a standard type from and n-d array, you > can use numpy.fromfile() I should also say that I have just committed a rewrite of the binary file reading stuff to scipy, so if you have the latest scipy SVN (as of a few minutes ago), you can do something like: fr

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread Christopher Barker
>>> I want to import binary files generated from C/FORTRAN into matplotlib for >>> plotting. if it's just a block of bytes in a standard type from and n-d array, you can use numpy.fromfile() If not, then you may have to read through the file in chunks, with various calls to file.read(), to get

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread Steve Schmerler
Kumar Appaiah wrote: > On Fri, Feb 02, 2007 at 05:14:37AM -0800, Vijay Kumar wrote: >> Hi, >> >> I want to import binary files generated from C/FORTRAN into matplotlib for >> plotting. >> Can this be done using 'load'? > > If you are using SciPy, scipy.io has a few functions which may > help. sci

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread Kumar Appaiah
On Fri, Feb 02, 2007 at 05:14:37AM -0800, Vijay Kumar wrote: > > Hi, > > I want to import binary files generated from C/FORTRAN into matplotlib for > plotting. > Can this be done using 'load'? If you are using SciPy, scipy.io has a few functions which may help. scipy.io.fromfile, for example.

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread humufr
Le Friday 02 February 2007 08:14:37 Vijay Kumar, vous avez écrit : > Hi, > > I want to import binary files generated from C/FORTRAN into matplotlib for > plotting. > Can this be done using 'load'? > > Thanks > Vijay no load can read only text file. --

[Matplotlib-users] Importing Binary files

2007-02-05 Thread Vijay Kumar
Hi, I want to import binary files generated from C/FORTRAN into matplotlib for plotting. Can this be done using 'load'? Thanks Vijay -- View this message in context: http://www.nabble.com/Importing-Binary-files-tf3160765.html#a8766617 Sent from the matplotlib - users mailing list archive at N

[Matplotlib-users] Importing Binary files

2007-02-05 Thread Vijay Kumar
Hi, I want to import binary files generated from C/FORTRAN into matplotlib for plotting. Can this be done using 'load'? Thanks Vijay -- View this message in context: http://www.nabble.com/Importing-Binary-files-tf3160763.html#a8766615 Sent from the matplotlib - users mailing list archive at N