(self)
return self
Disconnects all callbacks and disables interactivity. Any existing
        annotations will continue to be visible (and draggable, if applicable).
        This has no effect if the datacursor has not been enabled. Returns self
        to allow "chaining". (e.g. ``datacursor.hide().disable()``)
Disconnects all callbacks and disables interactivity. Any existing
        annotations will continue to be visible (and draggable, if applicable).
        This has no effect if the datacursor has not been enabled. Returns self
        to allow "chaining". (e.g. ``datacursor.hide().disable()``)
Disconnects all callbacks and disables interactivity . Any existing annotations will continue to be visible ( and draggable if applicable ) . This has no effect if the datacursor has not been enabled . Returns self to allow chaining . ( e . g . datacursor . hide () . disable () )
def disable(self):
        """
        Disconnects all callbacks and disables interactivity. Any existing
        annotations will continue to be visible (and draggable, if applicable).
        This has no effect if the datacursor has not been enabled. Returns self
        to allow "chaining". (e.g. ``datacursor.hide().disable()``)
        """
        if self._enabled:
            for fig, cids in self._cids:
                for cid in cids:
                    fig.canvas.mpl_disconnect(cid)
            self._enabled = False
        return self
def disable ( self ) : if self . _enabled : for fig , cids in self . _cids : for cid in cids : fig . canvas . mpl_disconnect ( cid ) self . _enabled = False return self