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 e0972f0 commit c07f674Copy full SHA for c07f674
1 file changed
lib/matplotlib/quiver.py
@@ -250,8 +250,6 @@ def on_dpi_change(fig):
250
self._cid = Q.ax.figure.callbacks.connect('dpi_changed',
251
on_dpi_change)
252
253
- self._cb_ref = weakref.ref(Q.ax.figure.callbacks)
254
-
255
self.labelpos = kw.pop('labelpos', 'N')
256
self.labelcolor = kw.pop('labelcolor', None)
257
self.fontproperties = kw.pop('fontproperties', dict())
@@ -273,11 +271,8 @@ def remove(self):
273
271
"""
274
272
Overload the remove method
275
276
- _cbs = self._cb_ref()
277
- if _cbs is not None:
278
- # disconnect the call back
279
- _cbs.disconnect(self._cid)
280
- self._cid = None
+ Q.ax.figure.callbacks.disconnect(self._cid)
+ self._cid = None
281
# pass the remove call up the stack
282
martist.Artist.remove(self)
283
0 commit comments