27 releases

0.0.26 Jun 9, 2018
0.0.24 Dec 16, 2017
0.0.23 Oct 9, 2017
0.0.22 Jan 16, 2017
0.0.0 Dec 4, 2014

#7 in Visualization

Download history 122/week @ 2018-07-09 124/week @ 2018-07-16 211/week @ 2018-07-23 160/week @ 2018-07-30 142/week @ 2018-08-06 197/week @ 2018-08-13 95/week @ 2018-08-20 106/week @ 2018-08-27 67/week @ 2018-09-03 108/week @ 2018-09-10 72/week @ 2018-09-17 92/week @ 2018-09-24 146/week @ 2018-10-01

303 downloads per month
Used in 10 crates

LGPL-3.0

95KB
2.5K SLoC

RustGnuplot

A Gnuplot controller written in Rust.

Build Status

Documentation

See here

Examples

A somewhat involved 2D example:

2D Example plot

Features

  • Simple 2D plots
    • lines
    • points
    • points + lines
    • error bars
    • ...and more!
  • Simple 3D plots
    • surface plots
    • heatmaps
    • contours

Building

Via Cargo

cargo build

lib.rs:

A simple gnuplot controller.

Example

# extern crate gnuplot;
# fn main() {
use gnuplot::{Figure, Caption, Color};

let x = [0u32, 1, 2];
let y = [3u32, 4, 5];
let mut fg = Figure::new();
fg.axes2d()
.lines(&x, &y, &[Caption("A line"), Color("black")]);
fg.show();
# }

No runtime deps