- Notifications
You must be signed in to change notification settings - Fork6
DJDuque/pgfplots
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Rust library to generate publication-quality figures. This crate is a PGFPlotscode generator, and provides utilities to create, customize, and compilehigh-quality plots.
Add the following to yourCargo.toml
file:
[dependencies]pgfplots ="0.5"
Plotting a quadratic function is as simple as:
use pgfplots::{axis::plot::Plot2D,Engine,Picture};letmut plot =Plot2D::new();plot.coordinates =(-100..100).into_iter().map(|i|(f64::from(i), f64::from(i*i)).into()).collect();Picture::from(plot).show_pdf(Engine::PdfLatex)?;
A more extensive list of examples and their source code is available in theexamples/
directory (runnable withcargo run --all-features --example example_name
).
[code] | [code] | [code] |
---|---|---|
![]() | ![]() | ![]() |
- Tectonic: Allow users to process the LaTeX code that generates figureswithout relying on any externally installed software, configuration, orresource files. This is achieved by including thetectonic crate as a dependency.
About
PGFPlots code generator
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.