From: <md...@us...> - 2008-02-29 14:04:53
|
Revision: 4991 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4991&view=rev Author: mdboom Date: 2008-02-29 06:04:48 -0800 (Fri, 29 Feb 2008) Log Message: ----------- Fix classic Wx toolbar pan and zoom functions (Thanks Jeff Peery) Modified Paths: -------------- branches/v0_91_maint/CHANGELOG branches/v0_91_maint/lib/matplotlib/backends/backend_wx.py Modified: branches/v0_91_maint/CHANGELOG =================================================================== --- branches/v0_91_maint/CHANGELOG 2008-02-29 13:13:27 UTC (rev 4990) +++ branches/v0_91_maint/CHANGELOG 2008-02-29 14:04:48 UTC (rev 4991) @@ -1,3 +1,6 @@ +2008-02-29 Fix class Wx toolbar pan and zoom functions (Thanks Jeff + Peery) - MGD + 2008-02-16 Added some new rec array functionality to mlab (rec_summarize, rec2txt and rec_groupby). See examples/rec_groupby_demo.py. Thanks to Tim M for rec2txt. Modified: branches/v0_91_maint/lib/matplotlib/backends/backend_wx.py =================================================================== --- branches/v0_91_maint/lib/matplotlib/backends/backend_wx.py 2008-02-29 13:13:27 UTC (rev 4990) +++ branches/v0_91_maint/lib/matplotlib/backends/backend_wx.py 2008-02-29 14:04:48 UTC (rev 4991) @@ -999,7 +999,7 @@ def print_bmp(self, filename, *args, **kwargs): return self._print_image(filename, wx.BITMAP_TYPE_BMP, *args, **kwargs) - + def print_jpeg(self, filename, *args, **kwargs): return self._print_image(filename, wx.BITMAP_TYPE_JPEG, *args, **kwargs) print_jpg = print_jpeg @@ -1009,14 +1009,14 @@ def print_png(self, filename, *args, **kwargs): return self._print_image(filename, wx.BITMAP_TYPE_PNG, *args, **kwargs) - + def print_tiff(self, filename, *args, **kwargs): return self._print_image(filename, wx.BITMAP_TYPE_TIF, *args, **kwargs) print_tif = print_tiff def print_xpm(self, filename, *args, **kwargs): return self._print_image(filename, wx.BITMAP_TYPE_XPM, *args, **kwargs) - + def _print_image(self, filename, filetype, *args, **kwargs): origBitmap = self.bitmap @@ -1055,7 +1055,7 @@ def get_default_filetype(self): return 'png' - + def realize(self): """ This method will be called when the system is ready to draw, @@ -1890,28 +1890,28 @@ DEBUG_MSG("panx()", 1, self) for a in self._active: - a.panx(direction) + a.xaxis.pan(direction) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) def pany(self, direction): DEBUG_MSG("pany()", 1, self) for a in self._active: - a.pany(direction) + a.yaxis.pan(direction) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) def zoomx(self, in_out): DEBUG_MSG("zoomx()", 1, self) for a in self._active: - a.zoomx(in_out) + a.xaxis.zoom(in_out) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) def zoomy(self, in_out): DEBUG_MSG("zoomy()", 1, self) for a in self._active: - a.zoomy(in_out) + a.yaxis.zoom(in_out) self.canvas.draw() self.canvas.Refresh(eraseBackground=False) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |