Skip to main content

nice_ticks

Function nice_ticks 

Source
pub fn nice_ticks(min: f64, max: f64, target: usize) -> Ticks
Expand description

Axis ticks over [min, max]: a nice step (1, 2 or 5 × 10^n) giving about target ticks, the range widened to whole steps, every tick rounded to the step’s decimals.