45 releases

0.0.45 Feb 9, 2025
0.0.44 Oct 31, 2024
0.0.43 Mar 23, 2024
0.0.39 Jul 16, 2023
0.0.0 Dec 4, 2014

#68 in Visualization

Download history 2130/week @ 2024-12-10 1435/week @ 2024-12-17 558/week @ 2024-12-24 1091/week @ 2024-12-31 1519/week @ 2025-01-07 1181/week @ 2025-01-14 1286/week @ 2025-01-21 1540/week @ 2025-01-28 2630/week @ 2025-02-04 1989/week @ 2025-02-11 1420/week @ 2025-02-18 2052/week @ 2025-02-25 2289/week @ 2025-03-04 2436/week @ 2025-03-11 1824/week @ 2025-03-18 1328/week @ 2025-03-25

8,172 downloads per month
Used in 53 crates (48 directly)

LGPL-3.0

265KB
6.5K SLoC

RustGnuplot

A Gnuplot controller written in Rust.

Build Status

Documentation

On docs.rs

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

~2–11MB
~133K SLoC