From: Jonathan D. <jon...@ho...> - 2009-07-30 08:15:17
|
Hello, I just compiled matplotlib using svn. Previously I was using a ubuntu package (version 0.98.3). I decided to use the svn version to have mplot3d available. Everything seem to work well but now when I start one of my python program that use matplotlib, I have problem with the axes draw method (a problem that I had not with the version 0.98.3). Here is the traceback. --------------------------------------------------------------------------------------------------- Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1417, in __call__ return self.func(*args) File "./sg.py", line 1420, in <lambda> bInvEns = Tix.Button(bt,text='Calculer',command=lambda : self.CSInvEns(self.cfr,self.gffr)) File "./sg.py", line 3267, in CSInvEns gffr.psaddData_m(u,xmin,xmax,pmin,pmax) File "./sg.py", line 3451, in psaddData_m self.psDraw(xmin,xmax,pmin,pmax) File "./sg.py", line 3526, in psDraw self.aps.draw() TypeError: draw_wrapper() takes at least 2 arguments (1 given) ---------------------------------------------------------------------------------------------------- self.aps is an axes instance. I looked at the doc and effectively the draw method take two arguments (the artist - which is self.aps - and the renderer - which I don't know what it is). I suspect that prior to installing the svn version, with the 0.98.3 version, these two arguments were given automatically to the draw method, but now it is no more the case. As it could also be a bug (but I don't think so) I post it here. I join the log of the compilation and the log of a test run (resp. build.out and run.out). If you have any idea or comment, thank you in advance for sharing it with me. Jonathan |