Expand description
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. The inclusive feature allows
users to fully process figures without relying on any externally installed
software.
The library’s API is designed to feel natural for LaTeX and PGFPlots users, but no previous experience is required to start generating publication-quality plots in Rust.
Quick Start
To get you started quickly, the easiest way to generate a plot is to use a
Plot2D. Plotting a quadratic function is as simple as:
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();It is possible to show multiple plots in the same axis environment by
creating an Axis and adding plots to it. An Axis and its individual
Plot2Ds are customized by AxisKeys and PlotKeys respectively.
Modules
Structs
Picture environment.
Enums
TikZ options passed to the Picture environment.
inclusiveThe error type returned when showing a figure fails.