use preexplorer::prelude::*; fn main() -> anyhow::Result<()> { let domain = (1..15).map(|i| (500. * i as f64).sqrt()); let image: Vec> = (1..15) .map(|i| { (0..10) .map(|j| { let j = j as f64; let i = i as f64; // Some computation i + j / i }) .collect() }) .collect(); let binwidth = 0.3; pre::ProcessBin::new(domain, image, binwidth) .set_title("Numerical results through histograms") .set_xlabel("index") .set_ylabel("value") .plot("my_identifier")?; Ok(()) }