Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c4c23ad

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.