Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Lasso selector #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 17, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: save correct callback ids.
Also, remove unused import.
  • Loading branch information
tonysyu committed Feb 28, 2012
commit 6baa65a592a47011cfcd593a28a2ec6f512dd7a7
5 changes: 2 additions & 3 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"""

from __future__ import print_function
import functools
import numpy as np

from mlab import dist
Expand Down Expand Up @@ -82,8 +81,8 @@ def __init__(self, ax):
self.active = True

def connect_event(self, event, callback):
self.canvas.mpl_connect(event, callback)
self.cids.append(callback)
cid = self.canvas.mpl_connect(event, callback)
self.cids.append(cid)

def disconnect_events(self):
for c in self.cids:
Expand Down