Revision: 8778
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8778&view=rev
Author:   mdboom
Date:     2010-11-08 16:33:23 +0000 (Mon, 08 Nov 2010)

Log Message:
-----------
Fix bug where using zoom tool on polar plot prevents it from panning 
subsequently

Modified Paths:
--------------
    branches/v1_0_maint/lib/matplotlib/backend_bases.py

Modified: branches/v1_0_maint/lib/matplotlib/backend_bases.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/backend_bases.py 2010-11-07 08:37:18 UTC 
(rev 8777)
+++ branches/v1_0_maint/lib/matplotlib/backend_bases.py 2010-11-08 16:33:23 UTC 
(rev 8778)
@@ -2310,7 +2310,7 @@
         self._init_toolbar()
         self._idDrag=self.canvas.mpl_connect('motion_notify_event', 
self.mouse_move)
 
-        self._ids_zoom = None
+        self._ids_zoom = []
         self._zoom_mode = None
 
         self._button_pressed = None # determined by the button pressed at start
@@ -2576,11 +2576,12 @@
 
     def release_zoom(self, event):
         'the release mouse button callback in zoom to rect mode'
-        if not self._xypress: return
-
         for zoom_id in self._ids_zoom:
             self.canvas.mpl_disconnect(zoom_id)
+        self._ids_zoom = []
 
+        if not self._xypress: return
+
         last_a = []
 
         for cur_xypress in self._xypress:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to