### 7.2.2 Scatterplots: scatterplot
nuaged_points batons

A scatter plot is simply a set of points plotted on axes. You can
draw a scatter plot with the scatterplot or
nuage_points command.

You can call scatterplot with a matrix with two columns
(essentially, a list of points) or a list of
x-coordinates followed by a list of y-coordinates. If you enter

scatterplot([[0,0],[1,1],[2,4],[3,9],[4,16]])

or

scatterplot([0,1,2,3,4],[0,1,4,9,16])

you will get

If you want the points connected to the x-axis, the batons
command will take the same arguments at scatterplot and plot
the points with a vertical line segment connecting them to the
x-axis. If you enter

batons([[0,0],[1,1],[2,4],[3,9],[4,16]])

you will get