Plot.Scatter
Preparing scatter plots.
val points_2d :
points:r2 Data.t ->
?style:Style.t ->
?legend:string ->
?error_bars:r2 Data.t ->
unit ->
r2 spec
points_2d ~points ~style ?legend ()
creates a 2d scatter plot using style
to select color and point shape.
?style
defaults to Style.default
?legend
defaults to ""
.?error_bars
, if present, is a sequence of r2
elements such that each element (y1, y2)
is displayed as a vertical error bar. The error bar associated to the element (x, y)
then correspond to the segment starting at (x, y + y1)
and ending at (x, y - y2)
.