Skip to main content

plot_line

Function plot_line 

Source
pub fn plot_line(n: usize, point: impl Fn(usize) -> [f64; 2]) -> Vec<[f64; 2]>
Expand description

The points of a line for a plot: every point where there are few, else the lowest and highest of each of PLOT_BUCKETS stretches, so that a peak one sample wide still shows.