plotlib 0.4.0

Pure Rust plotting library
Documentation
1
2
3
4
5
6
7
8
9
10
use plotlib::style::Line;

fn main() {
    let l1 = plotlib::line::Line::new(&[(0., 1.), (2., 1.5), (3., 1.2), (4., 1.1)])
        .style(plotlib::line::Style::new().colour("burlywood"));
    let v = plotlib::view::ContinuousView::new().add(&l1);
    plotlib::page::Page::single(&v)
        .save("line.svg")
        .expect("saving svg");
}