Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siegelord/rustgnuplot
A Rust library for drawing plots, powered by Gnuplot.
https://github.com/siegelord/rustgnuplot
gnuplot rust
Last synced: about 17 hours 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T05:17:53.000Z (2 months ago)
- Last Synced: 2024-12-26T08:07:33.846Z (8 days ago)
- Topics: gnuplot, rust
- Language: Rust
- Homepage:
- Size: 10.3 MB
- Stars: 414
- Watchers: 7
- Forks: 46
- Open Issues: 28
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# RustGnuplot
A Gnuplot controller written in Rust.
![Build Status](https://github.com/SiegeLord/RustGnuplot/actions/workflows/continuous-integration.yml/badge.svg)
[![](https://img.shields.io/crates/v/gnuplot.svg)](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();
```![Simple example plot](doc/fg.readme_example.png)
A somewhat involved 2D example (see `example1.rs` in the `examples` directory):
![Complicated example plot](doc/fg1.1.png)
## Features
* Simple 2D plots
* lines
* points
* points + lines
* error bars
* ...and more!
* Simple 3D plots
* surface plots
* heatmaps
* contours## Building
### Via Cargo
```
cargo build
```