Added auto scale for y axis