'Test whether the mouse event occurred in the x axis.'

def contains(self, mouseevent):

    if callable(self._contains):
        return self._contains(self, mouseevent)
    (x, y) = (mouseevent.x, mouseevent.y)
    try:
        trans = self.axes.transAxes.inverted()
        (xaxes, yaxes) = trans.transform_point((x, y))
    except ValueError:
        return (False, {})
    (l, b) = self.axes.transAxes.transform_point((0, 0))
    (r, t) = self.axes.transAxes.transform_point((1, 1))
    inaxis = ((xaxes >= 0) and (xaxes <= 1) and (((y < b) and (y > (b - self.pickradius))) or ((y > t) and (y < (t + self.pickradius)))))
    return (inaxis, {})
