Creates an XY scatter plot.
datais a sequence of (X, Y) points
data is a sequence of (X, Y) points, then
ScatterPlot(data) creates a scatter plot from this data.
data can be a plain sequence of points as function arguments, a list of points, or an n×2 real matrix in which each row represents a single point.
The chart is shown in the current diagram and a reference to the chart is returned.
To plot the graph of a function using points only, you may combine
ScatterPlot with the
graph function. But it is more convenient to use
ScatterPlot(❨1, 1❩, ❨2, 5❩, ❨3, −2❩)
ScatterPlot('(❨1, 1❩, ❨2, 5❩, ❨3, −2❩))
A ≔ ❨❨1, 1❩, ❨2, 5❩, ❨3, −2❩❩
⎛ 1 1⎞ ⎜ 2 5⎟ ⎝ 3 −2⎠
ScatterPlot(graph(sin, −2⋅π, 2⋅π))