PGFPlots
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:
[]
= "0.5"
Plotting a quadratic function is as simple as:
use ;
let mut plot = new;
plot.coordinates =
.into_iter
.map
.collect;
from.show_pdf?;
Examples
A more extensive list of examples and their source code is available in the
examples/
directory (runnable with
cargo run --all-features --example example_name
).
[code] | [code] | [code] |
---|---|---|
Features
- Tectonic: Allow users to process the LaTeX code that generates figures without relying on any externally installed software, configuration, or resource files. This is achieved by including the tectonic crate as a dependency.