Skip to main content

Crate starsight_layer_2

Crate starsight_layer_2 

Source
Expand description

Layer 2 โ€” scales, ticks, axes, and coordinate systems.

Bridges raw data values and the pixel-space rendering primitives in starsight_layer_1. Each module is single-purpose:

  • scales: map data domain โ†’ normalized [0, 1].
  • ticks: choose nice tick positions (Wilkinson Extended algorithm).
  • axes: bundle a scale with ticks and labels.
  • coords: convert data values to pixel positions.

Modulesยง

axes
Axes: a Scale bundled with tick positions, labels, and an optional title.
coords
Coordinate systems: convert data values to pixel positions.
scales
Scales: map data values onto normalized [0, 1] ranges.
ticks
Tick generation: the Wilkinson Extended algorithm.