A scatter plot is simply a set of points plotted on axes. The scatterplot or nuage_points command draws scatter plots.
scatterplot([[0,0],[1,1],[2,4],[3,9],[4,16]],display=point_width_3+point_point+red) |
or:
scatterplot([0,1,2,3,4],[0,1,4,9,16],display=point_width_3+point_point+red) |
The batons command will also draw a collection of points, but each point will be connected to the x-axis with a vertical line segment.
batons([[0,0],[1,1],[2,4],[3,9],[4,16]]) |