#86 matplotlib exception when using psyco.full()

open
nobody
None
5
2010-07-01
2010-07-01
Anonymous
No

I'm using python 2.6 on a windows XP 32-bit machine.

Recreating this problem is easy:

import pylab
pylab.plot([1,2,3],[5,7,3])
< a graph is shown on the screen >

import psyco
psyco.full()
pylab.plot([1,2,3],[5,7,3])
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__
return self.func(*args)
File "C:\Python26\lib\lib-tk\Tkinter.py", line 495, in callit
func(*args)
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 230, in idle_draw
self.draw()
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 215, in draw
FigureCanvasAgg.draw(self)
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py", line 314, in draw
self.figure.draw(self.renderer)
File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 46, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 773, in draw
for a in self.axes: a.draw(renderer)
File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 46, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\axes.py", line 1735, in draw
a.draw(renderer)
File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 46, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\axis.py", line 759, in draw
self._update_offset_text_position(ticklabelBoxes, ticklabelBoxes2)
File "C:\Python26\lib\site-packages\matplotlib\axis.py", line 1533, in _update_offset_text_position
top = self.axes.bbox.ymax
File "C:\Python26\lib\site-packages\matplotlib\transforms.py", line 307, in _get_ymax
return max(self.get_points()[:, 1])
File "C:\Python26\lib\site-packages\psyco\builtin.py", line 127, in max
return _max(*args)
File "C:\Python26\lib\site-packages\psyco\builtin.py", line 86, in _max
if not iterable:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks