Crate dataplotlib [] [src]

dataplotlib is a hassle-free library for plotting data

Example of how easy it is to use:

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();
}Run

Modules

plotbuilder

plotbuilder provides the structs that organize the plot data, plus some helper functions

plotter

plotter provides the Plotter object which handles plot creation and lifecycles

util

util just provides a couple of utility functions to make life easier.