'Handle Mouse clicks.
Parameters
event : matplotlib event object
The matplotlib object that we use to get x/y position.'

def onclick(self, event):

    mouseevent = event.mouseevent
    self.coords.append((mouseevent.xdata, mouseevent.ydata))
