MCPcopy Index your code
hub / github.com/DJDuque/pgfplots

github.com/DJDuque/pgfplots @v0.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.1 ↗ · + Follow
75 symbols 116 edges 11 files 15 documented · 20%

Browse by type

Functions 61 Types & classes 14
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PGFPlots

Test Status Crates.io

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:

[dependencies]
pgfplots = "0.5"

Plotting a quadratic function is as simple as:

use pgfplots::{axis::plot::Plot2D, Engine, Picture};

let mut 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)?;

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.

Core symbols most depended-on inside this repo

Shape

Function 41
Method 20
Enum 10
Class 4

Languages

Rust100%

Modules by API surface

src/axis/tests.rs14 symbols
src/axis/plot/tests.rs14 symbols
src/lib.rs13 symbols
src/axis.rs10 symbols
src/axis/plot.rs8 symbols
src/tests.rs6 symbols
src/axis/plot/coordinate/tests.rs3 symbols
src/axis/plot/coordinate.rs3 symbols
examples/snowflake.rs2 symbols
examples/rectangle_integration.rs1 symbols
examples/fitted_line.rs1 symbols

For agents

$ claude mcp add pgfplots \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page