https://github.com/SiegeLord/RustGnuplot
A Rust library for drawing plots, powered by Gnuplot.
https://github.com/SiegeLord/RustGnuplot
gnuplot rust
Last synced: 3 months ago
JSON representation
A Rust library for drawing plots, powered by Gnuplot.
- Host: GitHub
- URL: https://github.com/SiegeLord/RustGnuplot
- Owner: SiegeLord
- License: lgpl-3.0
- Created: 2013-06-08T23:27:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-09T23:12:16.000Z (5 months ago)
- Last Synced: 2025-03-20T20:29:27.244Z (4 months ago)
- Topics: gnuplot, rust
- Language: Rust
- Homepage:
- Size: 10.4 MB
- Stars: 420
- Watchers: 6
- Forks: 47
- Open Issues: 30
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# RustGnuplot
A Gnuplot controller written in Rust.

[](https://crates.io/crates/gnuplot)## Documentation
On [docs.rs](https://docs.rs/gnuplot/latest/gnuplot/)
## Examples
A simple example:
```rust
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):

## Features
* Simple 2D plots
* lines
* points
* points + lines
* error bars
* ...and more!
* Simple 3D plots
* surface plots
* heatmaps
* contours## Building
### Via Cargo
```
cargo build
```