Fixed adjustment of Y-axis

Changed function for adjusting numbers in each series array.