Plot.Line
Preparing line plots.
val line_2d :
points:r2 Data.t ->
?style:Style.t ->
?legend:string ->
?with_points:bool ->
?error_bars:r2 Data.t ->
unit ->
r2 spec
line_2d ~points ?style ?legend ?with_points ?error_bars ()
creates a 2d line plot.
?style
defaults to Style.default
?legend
defaults to ""
.?with_points
set to true
will display additional symbols (specified through the style
) at the positions corresponding to points
. This argument is ignored if ?error_bars
is passed.?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)
.val line_3d :
points:r3 Data.t ->
?style:Style.t ->
?legend:string ->
?with_points:bool ->
unit ->
r3 spec
line_3d ~points ~style ~legend
creates a 3d line plot. See line_2d
for the meaning of the other options.