Many thanks to Paulo Meira for his modifications to wxmpl.py to make it compatible with matplotlib-0.98.3. However, I had to make one change to his file for it to work with my application. Also, I had to modify one line in matplotlib/backends/backend_wx.py. I'm not sure why I had to make these changes--maybe I'm doing something wrong in my python/wx/wxmpl/matplotlib application. Anyway, here are patches that illustrate the changes I had to make. The patches are attached, but I'm not sure how this list handles patches, so the text is also pasted below. I hope this helps someone...if I'm doing something wrong, suggestions will be appreciated.
Craig Finch --- ./wxmpl.py 2008-11-21 13:03:02.000000000 -0500 +++ ./wxmpl_new.py 2008-11-21 14:28:35.000000000 -0500 @@ -1203,7 +1203,8 @@ if doRepaint: self.gui_repaint() else: - FigureCanvasWxAgg.draw(self, repaint) +# FigureCanvasWxAgg.draw(self, repaint) + FigureCanvasWxAgg.draw(self) # Don't redraw the decorations when called by _onPaint() if doRepaint: --- backend_wx.py 2008-11-21 14:24:17.000000000 -0500 +++ backend_wx_new.py 2008-11-21 14:26:24.000000000 -0500 @@ -1098,7 +1098,7 @@ DEBUG_MSG("_onPaint()", 1, self) drawDC = wx.PaintDC(self) if not self._isDrawn: - self.draw(drawDC=drawDC) + FigureCanvasWx.draw(self, drawDC=drawDC) else: self.gui_repaint(drawDC=drawDC) evt.Skip()
wxmpl.patch
Description: Binary data
backend_wx.patch
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users