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

#6 in Visualization

Download history 62/week @ 2018-09-18 95/week @ 2018-09-25 186/week @ 2018-10-02 62/week @ 2018-10-09 386/week @ 2018-10-16 210/week @ 2018-10-23 100/week @ 2018-10-30 219/week @ 2018-11-06 142/week @ 2018-11-13 479/week @ 2018-11-20 120/week @ 2018-11-27 242/week @ 2018-12-04 83/week @ 2018-12-11

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