Fixed the functions to place points on the y axis