31 releases

✓ Uses Rust 2018 edition

0.0.31 Apr 12, 2019
0.0.30 Mar 30, 2019
0.0.29 Feb 3, 2019
0.0.26 Jun 9, 2018
0.0.0 Dec 4, 2014

#2 in Visualization

Download history 372/week @ 2019-01-28 192/week @ 2019-02-04 260/week @ 2019-02-11 214/week @ 2019-02-18 298/week @ 2019-02-25 386/week @ 2019-03-04 229/week @ 2019-03-11 253/week @ 2019-03-18 450/week @ 2019-03-25 331/week @ 2019-04-01 329/week @ 2019-04-08 345/week @ 2019-04-15 287/week @ 2019-04-22 301/week @ 2019-04-29 320/week @ 2019-05-06

1,268 downloads per month
Used in 11 crates

LGPL-3.0

107KB
3K 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();

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

No runtime deps