How about f = open(file) s = f.read() f.close() a = s.replace('E-','EE').replace('-',' -').replace('EE','E-') x = np.fromstring(a, sep=' ')
Gary R. darkside wrote: > I think that not all de numbers use the same number of characters, the > problem is the signed ones. This numbers use one more character for '-' > and join the previous column. > Your idea is quite good, but I don't know how to do it: > If I use the pylab.load code, I suppose that I have to put something in > "converters" option, but I haven't found how to use it. > The other option I have found is using 'readline' of python > > fin = open (file, 'r') > datos1 = fin.readline() > fin.close() > > but I don't know how to split it and it seems a very rude way of doing it. > > Thank you very much <snip> ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users