Skip to main content

Module ticks

Module ticks 

Source
Expand description

Axis tick generation using the Talbot/Wilkinson extended algorithm.

This module implements the “An Extension of Wilkinson’s Algorithm for Positioning Tick Labels on Axes” algorithm (Talbot, Lin, Hanrahan, 2010). It produces aesthetically pleasing tick positions by jointly optimizing four objectives: simplicity, coverage, density, and legibility.

Structs§

Tick
A single tick mark with its position in data space and a formatted label.
TickSet
A set of tick positions with formatted labels.

Functions§

format_tick_value
Formats a single tick value to a compact, human-readable string.
generate_log_minor_ticks
Generates minor tick positions for a log10 scale.
generate_ticks
Generates optimal tick positions for an axis range.