Set y axis maximum for plots.