def release_pan(self, event):
self.canvas.mpl_disconnect(self._idDrag)<EOL>self._idDrag=self.canvas.mpl_connect('<STR_LIT>', self.mouse_move)<EOL>for a, ind in self._xypress:<EOL><INDENT>a.end_pan()<EOL><DEDENT>if not self._xypress: return<EOL>self._xypress = []<EOL>self._button_pressed=None<EOL>self.push_current()<EOL>self.release(event)<EOL>self.draw()<EOL>
the release mouse button callback in pan/zoom mode