1use sciviz::prelude::{self as plots, Plotter};
2
3fn main() {
4 let x = (0..1000).map(|f| f as f32).collect::<Vec<_>>();
5 let y = x.clone().into_iter().map(f32::sin).collect::<Vec<_>>();
6
7 let mut fig = plots::Figure::new();
8
9 plots::Scatterplot::new().x(x).y(y).plot(&mut fig);
10}