Skip to main content

Module scale

Module scale 

Source
Expand description

Where values land along a side of the plot, and the ticks that label it.

Structs§

Band
count equal bands across range, which runs forwards. padding is the share of each band left empty, half on either side.
Linear
domain mapped linearly onto range. range may run backwards.
Ticks
Tick values and their labels, and the domain they span.

Functions§

linear
About count ticks at 1, 2 or 5 times a power of ten. nice widens the domain to the ticks either side of lo..=hi; otherwise the domain is lo..=hi and the ticks fall inside it.
temporal
Calendar ticks inside lo..=hi, which is the domain as given.
value
A value read out whole: integers grouped, others to two decimals or three significant digits, whichever shows more, trailing zeros dropped.