Version 2.2.2
matplotlib

matplotlib.artist.Artist.have_units

Artist.have_units()

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