Set y axis limits when plotting history