First of all, thank you all for the help.

 > 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.

Here's the output for my dummy script. I'm using pylab functions: show, 
figure and bar, though just importing pylab without actually using the 
functions produces the same problems, that's why at first I thought the 
problem is related with something in the import.

-----------
matplotlib data path usr/lib/python2.5/site-packages/matplotlib/mpl-data
$HOME=/home/myhome
CONFIGDIR=/home/myhome/.matplotlib
loaded rc file /home/myhome/.matplotlib/matplotlibrc
matplotlib version 0.90.1
verbose.level debug
interactive is False
units is True
platform is linux2
loaded modules: ['pylab', 'distutils.distutils', '_bisect', 
'__future__', 'copy_reg', 'sre_compile', 'distutils', 'itertools', 
'_hashlib', '_sre', '__main__', 'site', '__builtin__', 'datetime', 
'distutils.re', 'matplotlib.re', 'matplotlib.tempfile', 'encodings', 
'encodings.encodings', 'shutil', 'distutils.string', 'dateutil', 
'matplotlib.datetime', 'posixpath', '_random', 'tempfile', 'errno', 
'matplotlib.warnings', 'binascii', 'encodings.codecs', 'sre_constants', 
're', 'matplotlib.md5', 'os.path', 'pytz.sys', '_codecs', 
'distutils.sysconfig', 'pytz.sets', 'math', 'fcntl', 'stat', 
'zipimport', 'string', 'warnings', 'encodings.types', 'UserDict', 
'encodings.utf_8', 'matplotlib', 'distutils.os', 'sys', 'pytz.tzinfo', 
'pytz', 'pytz.datetime', 'matplotlib.__future__', 'codecs', 
'matplotlib.sys', 'matplotlib.pytz', 'types', 'md5', '_types', 
'matplotlib.dateutil', 'hashlib', 'matplotlib.os', 'thread', 'bisect', 
'matplotlib.distutils', 'signal', 'distutils.errors', 'random', 
'linecache', 'matplotlib.shutil', 'posix', 'encodings.aliases', 'sets', 
'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys', 'os', 'strop']
numerix numpy 1.0.3
font search path 
['/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf', 
'/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/afm']
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/VeraMoIt.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/cmmi10.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/VeraSeBd.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/VeraIt.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/VeraMoBd.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/cmex10.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/cmtt10.ttf
trying fontname 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf
loaded ttfcache file /home/riveraca/.matplotlib/ttffont.cache
backend GTKAgg version 2.10.3
PROTON DOSE SPECTRUM
(0.0, 0.0, 0.0, 616.0, 24.0, 616.0) <type 'tuple'> <type 'float'>
(0.0, 0.0, 0.0, 28869.0, 169.0, 28869.0) <type 'tuple'> <type 'float'>
(0.0, 0.0, 0.0, 13900.0, 117.0, 13900.0) <type 'tuple'> <type 'float'>
(0.0, 0.0, 0.0, 6896.0, 83.0, 6896.0) <type 'tuple'> <type 'float'>
(0.0, 0.0, 0.0, 3749.0, 61.0, 3749.0) <type 'tuple'> <type 'float'>
        findfont failed Bitstream Vera Serif, New Century Schoolbook, Century 
Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times 
New Roman, Times, Palatino, Charter, serif
Could not match Bitstream Vera Serif, New Century Schoolbook, Century 
Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times 
New Roman, Times, Palatino, Charter, serif, normal, normal.  Returning 
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf
-----------
> 
> 
> 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
> 

I've tried with just these imports and there's no problem with that, 
everything runs ok, it's when I add the pylab imports when everything 
goes wrong. I've tried with these three posibilities and the result is 
always the same:

import pylab

from pylab import *

from pylab import figure, show, bar


AR


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to