'given the xy pixel coordinate, check if the annotation need to
be drawn.'

def _check_xy(self, renderer, xy_pixel):

    b = self.get_annotation_clip()
    if (b or ((b is None) and (self.xycoords == u'data'))):
        if (not self.axes.contains_point(xy_pixel)):
            return False
    return True
