{"id":13636887,"url":"https://github.com/djduque/pgfplots","last_synced_at":"2025-10-12T22:12:46.263Z","repository":{"id":36989777,"uuid":"481895703","full_name":"DJDuque/pgfplots","owner":"DJDuque","description":"PGFPlots code generator","archived":false,"fork":false,"pushed_at":"2023-06-21T16:50:46.000Z","size":99,"stargazers_count":118,"open_issues_count":7,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T12:05:06.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DJDuque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-15T08:45:56.000Z","updated_at":"2025-03-12T18:16:01.000Z","dependencies_parsed_at":"2024-06-19T02:54:28.488Z","dependency_job_id":"b600dea3-052e-4119-b03c-fe82f03665da","html_url":"https://github.com/DJDuque/pgfplots","commit_stats":{"total_commits":56,"total_committers":3,"mean_commits":"18.666666666666668","dds":0.25,"last_synced_commit":"a121b43d0f0c9836f93d1f48f80920058b23e5a6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJDuque%2Fpgfplots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJDuque%2Fpgfplots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJDuque%2Fpgfplots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DJDuque%2Fpgfplots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DJDuque","download_url":"https://codeload.github.com/DJDuque/pgfplots/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T00:01:06.908Z","updated_at":"2025-10-12T22:12:46.192Z","avatar_url":"https://github.com/DJDuque.png","language":"Rust","readme":"# PGFPlots\n\n[![Test Status](https://github.com/DJDuque/pgfplots/actions/workflows/rust.yml/badge.svg)](https://github.com/DJDuque/pgfplots/actions/workflows/rust.yml)\n[![Crates.io](https://img.shields.io/crates/v/pgfplots?labelColor=383f47)](https://crates.io/crates/pgfplots)\n\nA Rust library to generate publication-quality figures. This crate is a PGFPlots\ncode generator, and provides utilities to create, customize, and compile \nhigh-quality plots.\n\n## Usage\n\nAdd the following to your `Cargo.toml` file:\n\n```toml\n[dependencies]\npgfplots = \"0.5\"\n```\n\nPlotting a quadratic function is as simple as:\n\n```rust\nuse pgfplots::{axis::plot::Plot2D, Engine, Picture};\n\nlet mut plot = Plot2D::new();\nplot.coordinates = (-100..100)\n    .into_iter()\n    .map(|i| (f64::from(i), f64::from(i*i)).into())\n    .collect();\n\nPicture::from(plot).show_pdf(Engine::PdfLatex)?;\n```\n\n## [Examples](https://github.com/DJDuque/pgfplots/tree/main/examples)\n\nA more extensive list of examples and their source code is available in the\n`examples/` directory (runnable with\n`cargo run --all-features --example example_name`).\n\n|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/fitted_line.rs)|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/rectangle_integration.rs)|[[code]](https://github.com/DJDuque/pgfplots/blob/main/examples/snowflake.rs)|\n|-|-|-|\n|![](https://github.com/DJDuque/pgfplots/raw/main/examples/fitted_line.png)|![](https://github.com/DJDuque/pgfplots/raw/main/examples/rectangle_integration.png)|![](https://github.com/DJDuque/pgfplots/raw/main/examples/snowflake.png)|\n\n## Features\n\n- Tectonic: Allow users to process the LaTeX code that generates figures\nwithout relying on any externally installed software, configuration, or\nresource files. This is achieved by including the\n[tectonic](https://crates.io/crates/tectonic) crate as a dependency.\n","funding_links":[],"categories":["Libraries","库 Libraries"],"sub_categories":["Data visualization","数据可视化 Data visualization"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjduque%2Fpgfplots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjduque%2Fpgfplots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjduque%2Fpgfplots/lists"}