dataplotlib 0.1.1

dataplotlib is a(n early stage) hassle-free library for plotting data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate dataplotlib;
use dataplotlib::util::{linspace, zip2};
use dataplotlib::plotbuilder::PlotBuilder2D;
use dataplotlib::plotter::Plotter;

fn main() {
    let x = linspace(0, 10, 100);
    let y = x.iter().map(|x| x.sin()).collect();
    let xy = zip2(&x, &y);

    let pb = PlotBuilder2D::simple_xy(xy);
    let mut plt = Plotter::new();
    plt.plot2d(pb);
    plt.join();
}