'Callback for dragging in pan/zoom mode.'

def drag_pan(self, event):

    for (a, ind) in self._xypress:
        a.drag_pan(self._button_pressed, event.key, event.x, event.y)
    self.canvas.draw_idle()
