32 releases

✓ Uses Rust 2018 edition

0.0.32 Oct 4, 2019
0.0.31 Apr 12, 2019
0.0.30 Mar 30, 2019
0.0.26 Jun 9, 2018
0.0.0 Dec 4, 2014

#4 in Visualization

Download history 741/week @ 2019-06-21 321/week @ 2019-06-28 469/week @ 2019-07-05 260/week @ 2019-07-12 302/week @ 2019-07-19 226/week @ 2019-07-26 361/week @ 2019-08-02 318/week @ 2019-08-09 317/week @ 2019-08-16 678/week @ 2019-08-23 363/week @ 2019-08-30 461/week @ 2019-09-06 567/week @ 2019-09-13 639/week @ 2019-09-20 463/week @ 2019-09-27

1,739 downloads per month
Used in 16 crates

LGPL-3.0

115KB
3.5K SLoC

RustGnuplot

A Gnuplot controller written in Rust.

Build Status

Documentation

See here

Examples

A simple example:

let mut fg = Figure::new();
fg.axes2d()
	.set_title("A plot", &[])
	.set_legend(Graph(0.5), Graph(0.9), &[], &[])
	.set_x_label("x", &[])
	.set_y_label("y^2", &[])
	.lines(
		&[-3., -2., -1., 0., 1., 2., 3.],
		&[9., 4., 1., 0., 1., 4., 9.],
		&[Caption("Parabola")],
	);
fg.show().unwrap();

Simple example plot

A somewhat involved 2D example (see example1.rs in the examples directory):

Complicated 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

Dependencies