Version 2.2.4
matplotlib

matplotlib.axis.YAxis.limit_range_for_scale

YAxis.limit_range_for_scale(vmin, vmax)