Version 3.1.2
matplotlib

matplotlib.axis.XAxis.set_smart_bounds

XAxis.set_smart_bounds(value)

Set the axis to have smart bounds.