SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 8778
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8778&view=rev
Author: mdboom
Date: 2010年11月08日 16:33:23 +0000 (2010年11月08日)
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /