# Basic syntax: plt.set(ylim=(lower_bound, upper_bound)) # E.g.: plt.set(ylim=(0, 100)) # Note, change ylim to xlim to control the range on the x-axis # Note, use None on either bound to avoid having to specify it, e.g.: plt.set(ylim=(0, None))