granite-0.7.4.0: Easy terminal plotting.
Copyright(c) 2025
LicenseMIT
Maintainermschavinda@gmail.com
Safe HaskellNone
LanguageGHC2021

Granite.Scale

Description

Scale training: turn a declarative Scale into a TrainedScale that projects data values onto [0,1] and generates round-number ticks.

Synopsis

Documentation

data TrainedScale Source #

Constructors

TrainedScale 

Fields

niceTicks :: (Double, Double) -> Int -> [Double] Source #

Heckbert "loose label" tick selection. Round-number positions in {1, 2, 2.5, 5} × 10^k that bracket the data range.