use plotlib::page::Page; use plotlib::repr::Plot; use plotlib::style::*; use plotlib::view::ContinuousView; fn main() { let l1 = Plot::new(vec![(0., 1.), (2., 1.5), (3., 1.2), (4., 1.1)]) .line_style( LineStyle::new() .colour("burlywood") .linejoin(LineJoin::Round), ) .point_style(PointStyle::new()); let v = ContinuousView::new().add(l1); Page::single(&v) .save("line_and_point.svg") .expect("saving svg"); }