Matrix_charts.AxisSourceAxis 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. None inherits from theme.
tick_style : Ansi.Style.t option;Tick mark style. None inherits from theme.
label_style : Ansi.Style.t option;Tick label style. None inherits 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.