Version 2.2.2
matplotlib

matplotlib.axis.XAxis.set_data_interval

XAxis.set_data_interval(vmin, vmax, ignore=False)

set the axis data limits