From: <jd...@us...> - 2007-11-29 22:19:28
|
Revision: 4509 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4509&view=rev Author: jdh2358 Date: 2007-11-29 14:19:26 -0800 (Thu, 29 Nov 2007) Log Message: ----------- commited ludwigs axes3d patch Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes3d.py trunk/matplotlib/lib/matplotlib/mlab.py Modified: trunk/matplotlib/lib/matplotlib/axes3d.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes3d.py 2007-11-29 21:15:23 UTC (rev 4508) +++ trunk/matplotlib/lib/matplotlib/axes3d.py 2007-11-29 22:19:26 UTC (rev 4509) @@ -315,9 +315,10 @@ def mouse_init(self): self.button_pressed = None - self.figure.canvas.mpl_connect('motion_notify_event', self.on_move) - self.figure.canvas.mpl_connect('button_press_event', self.button_press) - self.figure.canvas.mpl_connect('button_release_event', self.button_release) + if self.figure.canvas != None: + self.figure.canvas.mpl_connect('motion_notify_event', self.on_move) + self.figure.canvas.mpl_connect('button_press_event', self.button_press) + self.figure.canvas.mpl_connect('button_release_event', self.button_release) def button_press(self, event): self.button_pressed = event.button Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2007-11-29 21:15:23 UTC (rev 4508) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2007-11-29 22:19:26 UTC (rev 4509) @@ -2441,9 +2441,9 @@ pass except RuntimeError: pass -else: + def gtkformat_factory(format, colnum): """ copy the format, perform any overrides, and attach an gtk style attrs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |