plotlib 0.4.0

Pure Rust plotting library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use plotlib::style::BarChart;

fn main() {
    let b1 = plotlib::barchart::BarChart::new(5.3).label("1");
    let b2 = plotlib::barchart::BarChart::new(2.6)
        .label("2")
        .style(plotlib::barchart::Style::new().fill("darkolivegreen"));
    let v = plotlib::view::CategoricalView::new()
        .add(&b1)
        .add(&b2)
        .x_label("Experiment");
    plotlib::page::Page::single(&v)
        .save("barchart.svg")
        .expect("saving svg");
}