PGFPlots

Test Status Crates.io GitHub commits since latest release (by date)

A Rust library to generate publication-quality figures. This crate is a PGFPlots code generator, and provides utilities to create, customize, and compile high-quality plots.

Usage

Add the following to your Cargo.toml file:

toml [dependencies] pgfplots = { version = "0.2", features = ["inclusive"] }

Plotting a quadratic function is as simple as:

```rust use pgfplots::axis::plot::Plot2D;

let mut plot = Plot2D::new(); plot.coordinates = (-100..100) .into_iter() .map(|i| (f64::from(i), f64::from(i*i)).into()) .collect();

plot.show()?; ```

Features

Want to contribute?

There are multiple ways to contribute: - Install and test PGFPlots. If it doesn't work as expected please open an issue. - Comment/propose a fix on some of the current open issues. - Read through the documentation. If there is something confusing, or you have a suggestion for something that could be improved, please let the maintainer(s) know. - Help evaluate open pull requests, by testing locally and reviewing what is proposed.