MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _release

Method _release

lib/matplotlib/backend_tools.py:863–878  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

861 'motion_notify_event', self._mouse_move)
862
863 def _release(self, event):
864 if self._button_pressed is None:
865 self._cancel_action()
866 return
867
868 self.figure.canvas.mpl_disconnect(self._id_drag)
869 self.toolmanager.messagelock.release(self)
870
871 for a, _ind in self._xypress:
872 a.end_pan()
873 if not self._xypress:
874 self._cancel_action()
875 return
876
877 self.toolmanager.get_tool(_views_positions).push_current()
878 self._cancel_action()
879
880 def _mouse_move(self, event):
881 for a, _ind in self._xypress:

Callers

nothing calls this directly

Calls 6

_cancel_actionMethod · 0.95
mpl_disconnectMethod · 0.80
get_toolMethod · 0.80
releaseMethod · 0.45
end_panMethod · 0.45
push_currentMethod · 0.45

Tested by

no test coverage detected