Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f152a commit 6baa65aCopy full SHA for 6baa65a
1 file changed
lib/matplotlib/widgets.py
@@ -10,7 +10,6 @@
10
"""
11
12
from __future__ import print_function
13
-import functools
14
import numpy as np
15
16
from mlab import dist
@@ -82,8 +81,8 @@ def __init__(self, ax):
82
81
self.active = True
83
84
def connect_event(self, event, callback):
85
- self.canvas.mpl_connect(event, callback)
86
- self.cids.append(callback)
+ cid = self.canvas.mpl_connect(event, callback)
+ self.cids.append(cid)
87
88
def disconnect_events(self):
89
for c in self.cids:
0 commit comments