ticks

Function ticks 

Source
pub fn ticks(start: f64, stop: f64, count: usize) -> Vec<f64>
Expand description

Generate nice linear ticks for a given domain.

Uses Wilkinson’s algorithm to generate approximately count tick values that are “nice” (round numbers).

§Example

use d3rs::array::ticks;

let t = ticks(0.0, 100.0, 5);
assert!(t.len() >= 5);
assert!(t[0] <= 0.0);
assert!(*t.last().unwrap() >= 100.0);