scale

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTick

func FormatTick(v float64) string

FormatTick formats a tick value concisely: up to 4 significant digits without trailing zeros.

func NiceTicks

func NiceTicks(min, max float64, maxTicks int) []float64

NiceTicks returns pleasant tick values covering [min, max]. Heckbert algorithm: step = 1 / 2 / 2.5 / 5 / 10 * 10^k.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL