'For artists in an axes, if the xaxis has units support,
convert *x* using xaxis unit type'

def convert_xunits(self, x):

    ax = getattr(self, u'axes', None)
    if ((ax is None) or (ax.xaxis is None)):
        return x
    return ax.xaxis.convert_units(x)
