Version 2.2.3
matplotlib

matplotlib.axis.YAxis.limit_range_for_scale

YAxis.limit_range_for_scale(vmin, vmax)