Plot a curve through n points.