A Rust library for drawing plots, powered by Gnuplot.
LGPL-3.0 License
A Gnuplot controller written in Rust.
On docs.rs
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();
A somewhat involved 2D example (see example1.rs
in the examples
directory):
cargo build