package archimedes
Plotting float Arrays.
val y :
Viewport.t ->
?const_base:bool ->
?base:float array ->
?fill:bool ->
?fillcolor:Color.t ->
?style:style ->
?const_y:bool ->
float array ->
unit
y vp yvec
draws the set of points (i, yvec.(i))
.
val xy :
Viewport.t ->
?fill:bool ->
?fillcolor:Color.t ->
?style:style ->
?const_x:bool ->
float array ->
?const_y:bool ->
float array ->
unit
xy cp xvec yvec
draws the set of points (xvec.(i), yvec.(i))
. The optional arguments are similar to Array.y
.
val xy_pairs :
Viewport.t ->
?fill:bool ->
?fillcolor:Color.t ->
?style:[ `Lines | `Markers of string | `Linesmarkers of string ] ->
(float * float) array ->
unit
See Array.xy
. The only difference is that this function takes an array of couples (x,y) instead of two arrays, one for x and a second of y.
val stack :
Viewport.t ->
?fill:bool ->
?fillcolors:Color.t array ->
?style:style ->
?const:bool ->
float array array ->
unit
stack yvecs
plot the data in a stacked fashion, the Y values contained in yvecs.(i)
are represented as the deviation above yvecs.(i-1)
. This makes sense only if the data is non-negative.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>