Version 2.2.2
matplotlib

matplotlib.axis.YAxis.set_data_interval

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

set the axis data limits