Version 2.2.4
matplotlib

matplotlib.axis.XAxis.have_units

XAxis.have_units()