Trouble with recent mpl

Hi all,

I rerun a program which I have written one year ago.
Now It doesn't work for me with the latest svn version.
Here is the output
python lshape.py --verbose-helpful
$HOME=/home/nwagner
CONFIGDIR=/home/nwagner/.matplotlib
matplotlib data path /usr/lib64/python2.4/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/.matplotlib/matplotlibrc
matplotlib version 0.90.1
verbose.level helpful
interactive is False
units is False
platform is linux2
numerix numpy 1.0.4.dev3880
font search path
['/usr/lib64/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf',
'/usr/lib64/python2.4/site-packages/matplotlib/mpl-data/fonts/afm']
loaded ttfcache file /home/nwagner/.matplotlib/ttffont.cache
backend WXAgg version 2.6.1.0
Traceback (most recent call last):
  File "lshape.py", line 136, in ?
    show()
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1246, in show
    figwin.canvas.draw()
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 61, in draw
    FigureCanvasAgg.draw(self)
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 392, in draw
    self.figure.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line
601, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/axes.py", line
1356, in draw
    a.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/axis.py", line
635, in draw
    self.label.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/text.py", line
410, in draw
    bbox, info = self._get_layout(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/text.py", line
254, in _get_layout
    w,h = renderer.get_text_width_height(
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 245, in get_text_width_height
    width, height, fonts = math_parse_s_ft2font(
  File "/usr/lib64/python2.4/site-packages/matplotlib/mathtext.py", line
1585, in __call__
    expression.parseString( s )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 622, in parseString
    loc, tokens = self.parse( instring.expandtabs(), 0 )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 564, in parse
    loc,tokens = self.parseImpl( instring, loc, doActions )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 1863, in parseImpl
    loc, tokens = self.expr.parse( instring, loc, doActions )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 564, in parse
    loc,tokens = self.parseImpl( instring, loc, doActions )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 1548, in parseImpl
    raise maxException
matplotlib.pyparsing.ParseException: Expected "\" (at char 0), (line:1,
col:1)

Any pointer would be appreciated.

Nils

Hi Nils,

It seems there's a problem with some of the text instances (label,
title etc.) that have TeX expressions in them.

You can also attach the problematic script (or part of it) here.

Best,
Edin

···

On 7/5/07, Nils Wagner <nwagner@...1052...> wrote:

Hi all,

I rerun a program which I have written one year ago.
Now It doesn't work for me with the latest svn version.
Here is the output
python lshape.py --verbose-helpful
$HOME=/home/nwagner
CONFIGDIR=/home/nwagner/.matplotlib
matplotlib data path /usr/lib64/python2.4/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/.matplotlib/matplotlibrc
matplotlib version 0.90.1
verbose.level helpful
interactive is False
units is False
platform is linux2
numerix numpy 1.0.4.dev3880
font search path
['/usr/lib64/python2.4/site-packages/matplotlib/mpl-data/fonts/ttf',
'/usr/lib64/python2.4/site-packages/matplotlib/mpl-data/fonts/afm']
loaded ttfcache file /home/nwagner/.matplotlib/ttffont.cache
backend WXAgg version 2.6.1.0
Traceback (most recent call last):
  File "lshape.py", line 136, in ?
    show()
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wx.py",
line 1246, in show
    figwin.canvas.draw()
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_wxagg.py",
line 61, in draw
    FigureCanvasAgg.draw(self)
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 392, in draw
    self.figure.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line
601, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/axes.py", line
1356, in draw
    a.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/axis.py", line
635, in draw
    self.label.draw(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/text.py", line
410, in draw
    bbox, info = self._get_layout(renderer)
  File "/usr/lib64/python2.4/site-packages/matplotlib/text.py", line
254, in _get_layout
    w,h = renderer.get_text_width_height(
  File
"/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py",
line 245, in get_text_width_height
    width, height, fonts = math_parse_s_ft2font(
  File "/usr/lib64/python2.4/site-packages/matplotlib/mathtext.py", line
1585, in __call__
    expression.parseString( s )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 622, in parseString
    loc, tokens = self.parse( instring.expandtabs(), 0 )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 564, in parse
    loc,tokens = self.parseImpl( instring, loc, doActions )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 1863, in parseImpl
    loc, tokens = self.expr.parse( instring, loc, doActions )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 564, in parse
    loc,tokens = self.parseImpl( instring, loc, doActions )
  File "/usr/lib64/python2.4/site-packages/matplotlib/pyparsing.py",
line 1548, in parseImpl
    raise maxException
matplotlib.pyparsing.ParseException: Expected "\" (at char 0), (line:1,
col:1)

Any pointer would be appreciated.

Nils

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users