|
From: <md...@us...> - 2008-05-07 16:37:10
|
Revision: 5127
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5127&view=rev
Author: mdboom
Date: 2008-05-07 09:35:29 -0700 (Wed, 07 May 2008)
Log Message:
-----------
Update radio buttons to new transformation framework (thanks Matthias Michler)
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/widgets.py
Modified: trunk/matplotlib/lib/matplotlib/widgets.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/widgets.py 2008-05-07 10:41:42 UTC (rev 5126)
+++ trunk/matplotlib/lib/matplotlib/widgets.py 2008-05-07 16:35:29 UTC (rev 5127)
@@ -459,7 +459,7 @@
def _clicked(self, event):
if event.button !=1 : return
if event.inaxes != self.ax: return
- xy = self.ax.transAxes.inverse_xy_tup((event.x, event.y))
+ xy = self.ax.transAxes.inverted().transform_point((event.x, event.y))
pclicked = np.array([xy[0], xy[1]])
def inside(p):
pcirc = np.array([p.center[0], p.center[1]])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|