'End measuring on an axis.'

def _onLeftButtonUp(self, evt):

    x = evt.GetX()
    y = (self.figure.bbox.height - evt.GetY())
    evt.Skip()
    self._set_capture(False)
    FigureCanvasBase.button_release_event(self, x, y, 1, guiEvent=evt)
