unexpecter errors on some examples

Hi,

I haven’t been able to run some examples in the latest CVS Version.

Legend-demo2.py for instance, gives the following traceback;

Traceback (most recent call last):

File “”, line 14, in ?

File “/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py”, line 771, in show

ShowOn().enter_mainloop()

File “/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py”, line 747, in enter_mainloop

self.set(1)

File “/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py”, line 739, in set

manager.figure.draw()

File “/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py”, line 332, in draw

a.draw(pixmap)

File “/usr/lib/python2.2/site-packages/matplotlib/artist.py”, line 70, in draw

self._draw(drawable, *args, **kwargs)

File “/usr/lib/python2.2/site-packages/matplotlib/axes.py”, line 1419, in _draw

line.draw(drawable)

File “/usr/lib/python2.2/site-packages/matplotlib/artist.py”, line 70, in draw

self._draw(drawable, *args, **kwargs)

File “/usr/lib/python2.2/site-packages/matplotlib/lines.py”, line 161, in _draw

self._lineFunc(drawable, gc, xt, yt)

File “/usr/lib/python2.2/site-packages/matplotlib/lines.py”, line 276, in _draw_dashed

gc.set_linestyle('dashed')

File “/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py”, line 208, in set_linestyle

self.set_dashes(offset, dashes)

File “/usr/lib/python2.2/site-packages/matplotlib/backends/backend_gtk.py”, line 177, in set_dashes

dashes = dash_list*dpi/72.0

TypeError: unsupported operand type(s) for /: ‘array’ and ‘float’

some other example fail with the exact same traceback… I believe the problem lies with the gtk backend, since the same example runs fine with the WX backend.

Cheers,

fiocruz4.jpg

···

Flávio Codeço Coelho, PhD

Programa de Computação Científica

Fundação Oswaldo Cruz

Rio de Janeiro – Brasil