33 releases

✓ Uses Rust 2018 edition

0.0.33 Jan 4, 2020
0.0.32 Oct 4, 2019
0.0.31 Apr 12, 2019
0.0.30 Mar 30, 2019
0.0.0 Dec 4, 2014

#4 in Visualization

Download history 562/week @ 2019-10-04 612/week @ 2019-10-11 585/week @ 2019-10-18 657/week @ 2019-10-25 419/week @ 2019-11-01 391/week @ 2019-11-08 518/week @ 2019-11-15 429/week @ 2019-11-22 434/week @ 2019-11-29 614/week @ 2019-12-06 480/week @ 2019-12-13 420/week @ 2019-12-20 419/week @ 2019-12-27 707/week @ 2020-01-03 1340/week @ 2020-01-10

2,134 downloads per month
Used in 20 crates

LGPL-3.0

125KB
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