Version 2.2.4
matplotlib

matplotlib.axis.XAxis.limit_range_for_scale

XAxis.limit_range_for_scale(vmin, vmax)