37 releases

✓ Uses Rust 2018 edition

0.0.37 Jun 7, 2020
0.0.35 Apr 26, 2020
0.0.34 Jan 26, 2020
0.0.32 Oct 4, 2019
0.0.0 Dec 4, 2014

#3 in Visualization

Download history 435/week @ 2020-03-16 517/week @ 2020-03-23 514/week @ 2020-03-30 579/week @ 2020-04-06 664/week @ 2020-04-13 392/week @ 2020-04-20 723/week @ 2020-04-27 483/week @ 2020-05-04 706/week @ 2020-05-11 860/week @ 2020-05-18 895/week @ 2020-05-25 873/week @ 2020-06-01 645/week @ 2020-06-08 764/week @ 2020-06-15 792/week @ 2020-06-22 817/week @ 2020-06-29

2,680 downloads per month
Used in less than 23 crates

LGPL-3.0

130KB
4K 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