module Hist:sig
..end
Draw Bar diagrams (Histograms).
Histograms.
This module draws histograms.
type 'a
labels =
| |
Values |
| |
User of |
val simple : ?width:Num.t ->
?height:Num.t ->
?padding:Num.t ->
?fill:Color.t list ->
?perspective:bool ->
?hcaption:Picture.t ->
?vcaption:Picture.t ->
?histlabel:Command.vposition * Picture.t labels ->
?vlabel:Plot.labels ->
?hlabel:Picture.t list -> float list -> Command.t
simple l
draws an histogram from a list l
of floating-point values.
width
: Total width of the histogram (default: 100 bp)height
: Total height for the histogram (default: 200 bp)padding
: Horizontal space between two blocksfill
: The colors used to draw the successive blocks;
it is used circularlyhcaption
: See module Plotvcaption
: See module Plothistlabel
: Add a label to each block; the first component
controls the placement of the label; the second component, of type
insideBox
, controls the label itself, which is either the numerical
value of the block (i.e. the float) or a user picturevlabel
: See module Plothlabel
: Labels for each blockval compare : ?width:Num.t ->
?height:Num.t ->
?padding:Num.t ->
?fill:Color.t list ->
?perspective:bool ->
?hcaption:Picture.t ->
?vcaption:Picture.t ->
?histlabel:Command.vposition *
Picture.t list labels ->
?vlabel:Plot.labels ->
?hlabel:Picture.t list -> float list list -> Command.t
compare l
draws a comparative histogram from a list l
of floating-point lists.
For optional arguments, see function simple
above.
val stack : ?width:Num.t ->
?height:Num.t ->
?padding:Num.t ->
?fill:Color.t list ->
?perspective:bool ->
?hcaption:Picture.t ->
?vcaption:Picture.t ->
?histlabel:Command.vposition *
Picture.t list labels ->
?vlabel:Plot.labels ->
?hlabel:Picture.t list -> float list list -> Command.t
compare l
draws a stacked histogram from a list l
of floating-point lists.
For optional arguments, see function simple
above.