def on_press(self, event):
    '\n        Press event to initiate a drag\n        '
    if (event.inaxes != self.axes):
        return
    self.mouse = (event.button, event.xdata, event.ydata)
Press event to initiate a drag
def on_press(self, event):
    '\n        \n        '
    if (event.inaxes != self.axes):
        return
    self.mouse = (event.button, event.xdata, event.ydata)