Plotting points with curves