package matrix
Module Matrix_charts.ScaleSource
Axis scaling strategies.
Scales control how data values map to pixel positions.
The type for domain specifications. `Auto infers bounds from the data.
Source
type t = | Auto| Numeric of {domain : numeric_domain;clamp : bool;
}(*Linear numeric scale. When
*)clampistrue, values outside the domain are clamped.| Log of {base : float;domain : numeric_domain;clamp : bool;
}(*Logarithmic scale. Positive values only; values
*)<= 0are clamped to1e-10.| Band of {}(*Categorical band scale. Each category gets an equal-width band.
*)padding([0, 0.95]) controls inter-band spacing.
numeric () is a linear numeric scale. domain defaults to `Auto. clamp defaults to true.
log () is a logarithmic scale. base defaults to 10.0 and must be > 1 (values <= 1 fall back to 10). domain defaults to `Auto. clamp defaults to true.