Expand description
Scales and axis ticks: linear value scales, “nice” numeric ticks and calendar-aware time ticks.
Structs§
- Linear
Scale - Maps a value domain linearly onto an output range (pixels, dots or cells).
- Time
Tick - A labelled tick on a time axis.
Functions§
- format_
value - Formats
vwith just enough decimals to tell ticksstepapart. Values of a million or more use a compactk,M,BorTsuffix. - nice_
step - A step of 1, 2 or 5 times a power of ten that splits
spaninto abouttargetintervals. - nice_
ticks - Tick values at multiples of
nice_stepinside[min, max], with the step used. - time_
ticks - About
targetticks betweenstartandend, on whole local seconds, minutes, hours, days, months or years intz, labelled for that step.