Version 2.2.3
matplotlib

matplotlib.axis.XAxis.limit_range_for_scale

XAxis.limit_range_for_scale(vmin, vmax)