John,
> I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is
> being used (TkAgg cannot be set, as TkInter is not installed on the
> system, I think. It throws a "NO Module named Tkinter" error).
This is not happening for me. Does it happen every time you run mpl
or just the first time after you install. Run some test script, eg
Thanks for your reply. I think it might well be a fonts problem. Here's the
test script, plus a comment where the big delay happens:
% cat test.py
from pylab import *
plot([1,2,3])
show()
cherry% python test.py -dGTKAgg --verbose-debug
matplotlib data path /usr/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/home/ucfajlg
CONFIGDIR=/home/ucfajlg/.matplotlib
loaded rc
file /usr/lib/python2.4/site-packages/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.90.1
verbose.level debug
interactive is False
units is True
platform is linux2
loaded modules:
['pylab', '_bisect', '__future__', 'copy_reg', 'sre_compile', 'distutils', 'itertools', '_sre', 'japanese.aliases', 'site', '__builtin__', 'datetime', 'distutils.re', 'matplotlib.re', 'matplotlib.tempfile', 'encodings', 'pytz.datetime', 'shutil', 'distutils.string', 'distutils.os', 'dateutil', 'matplotlib.datetime', 'posixpath', '_random', 'tempfile', 'errno', 'matplotlib.warnings', 'binascii', 'encodings.codecs', 'sre_constants', 're', 'matplotlib.md5', 'os.path', 'pytz.sys', '_codecs', 'distutils.sysconfig', 'encodings.exceptions', 'pytz.sets', 'math', 'fcntl', 'stat', 'zipimport', 'string', 'warnings', 'encodings.types', 'UserDict', 'encodings.utf_8', 'matplotlib', 'japanese', 'sys', 'japanese.aliases.encodings', 'pytz.tzinfo', 'pytz', '__main__', 'matplotlib.__future__', 'codecs', 'matplotlib.sys', 'matplotlib.pytz', 'types', 'md5', 'matplotlib.dateutil', 'matplotlib.os', 'thread', 'sre', '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.4
font search path
['/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf', '/usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/afm']
trying
fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/cmsy10.ttf
trying
fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/VeraSeBd.ttf
trying
fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/cmr10.ttf
trying
fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/cmex10.ttf
trying
fontname /usr/lib/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf
loaded ttfcache file /home/ucfajlg/.matplotlib/ttffont.cache
backend GTKAgg version 2.10.1
[... BIG DELAY....]
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.4/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf
So, it's not finding any of the fonts above, and coming up with Verta.ttf.
Could this be the problem? And if it is, what can I do to solve it?
Thanks!
Jose
···
On Tuesday 04 December 2007 03:25:15 John Hunter wrote:
On Dec 3, 2007 9:08 AM, José Gómez-Dans <jgomezdans@...287...> wrote: