Skip to content

Commit c4c23ad

Browse files
committed
Update radio buttons to new transformation framework (thanks Matthias Michler)
svn path=/trunk/matplotlib/; revision=5127
1 parent 1952d93 commit c4c23ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def __init__(self, ax, labels, active=0, activecolor='blue'):
459459
def _clicked(self, event):
460460
if event.button !=1 : return
461461
if event.inaxes != self.ax: return
462-
xy = self.ax.transAxes.inverse_xy_tup((event.x, event.y))
462+
xy = self.ax.transAxes.inverted().transform_point((event.x, event.y))
463463
pclicked = np.array([xy[0], xy[1]])
464464
def inside(p):
465465
pcirc = np.array([p.center[0], p.center[1]])

0 commit comments

Comments
 (0)