Version 3.1.2
matplotlib

matplotlib.axis.YAxis.set_view_interval

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