Hi all,
I'm running matplotlib on Mac OS X and I've set text.usetex to True in
matplotlibrc, but if I try to run the tex_demo I get the error shown
below. If I'm right it's a problem with dvipng:
dvipng -version
This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
dvipng 1.6
kpathsea version 3.5.5
Copyright (C) 2002-2005 Jan-Ake Larsson.
There is NO warranty. You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files
named COPYING and dvipng.c.
Any idea?
Thanks,
Michele
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/__init__.py:959:
UserWarning: Bad val "true" on line #123
"text.usetex : true # use latex for all text handling. For
more information, see"
in file "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc"
'NoneType' object has no attribute 'group'
val, cnt, line, fname, msg))
Traceback (most recent call last):
File "/Users/nmm42/devel/workspace/PythonPlots/src/examples/tex_demo.py",
line 31, in <module>
savefig('tex_demo')
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py",
line 796, in savefig
return fig.savefig(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py",
line 727, in savefig
self.canvas.print_figure(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py",
line 187, in print_figure
**kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 456, in print_figure
self.draw()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 392, in draw
self.figure.draw(renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py",
line 569, in draw
for a in self.axes: a.draw(renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py",
line 1155, in draw
a.draw(renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
line 591, in draw
tick.draw(renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axis.py",
line 175, in draw
if self.label1On: self.label1.draw(renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py",
line 902, in draw
Text.draw(self, renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py",
line 400, in draw
bbox, info = self._get_layout(renderer)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py",
line 246, in _get_layout
line, self._fontproperties, ismath=self.is_math_text())
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 239, in get_text_width_height
texmanager = self.get_texmanager()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backend_bases.py",
line 415, in get_texmanager
from matplotlib.texmanager import TexManager
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/texmanager.py",
line 61, in <module>
class TexManager:
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/texmanager.py",
line 83, in TexManager
dvipngVersion = get_dvipng_version()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/texmanager.py",
line 58, in get_dvipng_version
raise RuntimeError('Could not obtain dvipng version')
RuntimeError: Could not obtain dvipng version