matplotlib.axis.XTick.have_units

XTick.have_units()

返回 True 如果在任何轴上设置了单位。