pub trait PlotNum: PartialOrd + Copy + Debug {
// Required methods
fn is_hole(&self) -> bool;
fn scale(&self, range: &[Self; 2], max: f64) -> f64;
fn unit_range(offset: Option<Self>) -> [Self; 2];
}
Expand description
A plottable number. In order to be able to plot a number, we need information on how to display it as well as the interval ticks.