|
From: John H. <jd...@gm...> - 2008-07-14 14:02:44
|
On Thu, Jul 10, 2008 at 6:42 AM, Angela Rivera Campos <riv...@in...> wrote: > Hi, > > I'm quite a newbie on matplotlib. > > I'm trying to get some data from a file. I've got a function that reads > the data from the file and stores it in a tuple as a set of floats. When > I use this without importing pylab it just go well but when I do it > after importing this module there's a rounding and I don't get the > proper data: My guess is there is something triggered by a pylab numpy/numerix/Numeric import, but w/o kjnowing more about your matplotlib and other software versions is it difficult to guess. Could you put these lines into a test script and run them with > python myscript.py --verbose-debug and paste the output. Florian Koelling recently reported a problem that sounded very similar under the heading "mad interference between matplotlib and openbabel". Apparently some pylab import is doing something funky with some third party libs. Could you test just the numpy imports to see if that makes a difference. Ie, instead of importing pylab before your module code, do the following: import numpy import numpy.fft importnumpy.random import numpy.linalg and let us know if you see similar problems. JDH JDH |