plotlib 0.5.0

Pure Rust plotting library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
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");
}