'Return *True* if units are set on the *x* or *y* axes'

def have_units(self):

    ax = self.axes
    if ((ax is None) or (ax.xaxis is None)):
        return False
    return (ax.xaxis.have_units() or ax.yaxis.have_units())
