While I don't think this has caused any problems yet, I have noticed a
discrepancy in how a button-click test was being done versus other checks in
the same file. It also makes more sense to check against a compiled list of
buttons instead of using a hard-coding value.
Attached is a patch
Ben Root
Index: matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py
===================================================================
--- matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py (revision 8491)
+++ matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py (working copy)
@@ -446,7 +446,7 @@
if self.M is None:
return ''
- if self.button_pressed == 1:
+ if self.button_pressed in self._rotate_btn:
return 'azimuth=%d deg, elevation=%d deg ' % (self.azim, self.elev)
# ignore xd and yd and display angles instead
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel