package matrix
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/matrix.charts/Matrix_charts/Axis/index.html
Module Matrix_charts.AxisSource
Axis rendering configuration.
Controls visibility, tick marks, labels, and styling for a single axis.
The type for tick label formatters. Receives the tick index (zero-based) and the tick value. See Label_format.
The type for axis line rendering modes.
`None: no axis line.`Axis_only: axis line only.`Frame: full frame around the plot area.
The type for axis titles.
type t = {show : bool;(*Whether to render this axis.
*)line : line;(*Axis line mode.
*)ticks : int;(*Target number of ticks. The actual count may differ for "nice" tick spacing.
*)format : formatter;(*Tick label formatter.
*)style : Ansi.Style.t option;(*Axis line style.
*)Noneinherits from theme.tick_style : Ansi.Style.t option;(*Tick mark style.
*)Noneinherits from theme.label_style : Ansi.Style.t option;(*Tick label style.
*)Noneinherits from theme.tick_length : int;(*Tick mark length in cells.
*)label_padding : int;(*Space between tick mark and label in cells.
*)title : title option;(*Axis title.
*)
}Hidden axis: show = false, no ticks, no line.
Default axis: visible, 6 target ticks, `Axis_only line, 1-cell ticks with 1-cell label padding.
with_style s a is a with axis line style s.
with_tick_style s a is a with tick mark style s.
with_label_style s a is a with tick label style s.
with_tick_length n a is a with tick mark length n. Clamped to >= 0.
with_label_padding n a is a with label padding n. Clamped to >= 0.
with_title text a is a with title text.