'Release the canvas and disconnect press/release events'

def disable(self, event):

    self._cancel_action()
    self.figure.canvas.widgetlock.release(self)
    self.figure.canvas.mpl_disconnect(self._idPress)
    self.figure.canvas.mpl_disconnect(self._idRelease)
    self.figure.canvas.mpl_disconnect(self._idScroll)
