{"id":36236678,"url":"https://github.com/rtbo/plotive","last_synced_at":"2026-01-11T06:01:00.457Z","repository":{"id":308339857,"uuid":"1031651746","full_name":"rtbo/plotive","owner":"rtbo","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-07T17:01:12.000Z","size":10929,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-08T07:27:25.314Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rtbo.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-04T06:09:51.000Z","updated_at":"2026-01-07T17:01:17.000Z","dependencies_parsed_at":"2025-12-03T10:03:14.204Z","dependency_job_id":null,"html_url":"https://github.com/rtbo/plotive","commit_stats":null,"previous_names":["rtbo/eidoplot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rtbo/plotive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fplotive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fplotive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fplotive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fplotive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtbo","download_url":"https://codeload.github.com/rtbo/plotive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtbo%2Fplotive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28293188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-11T06:01:00.330Z","updated_at":"2026-01-11T06:01:00.438Z","avatar_url":"https://github.com/rtbo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plotive\n\n_declarative plotting_. A simple data plotting library written in Rust.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Crates.io Version](https://img.shields.io/crates/v/plotive)\n![docs.rs link](https://img.shields.io/docsrs/plotive)\n[![Test Suite](https://github.com/rtbo/plotive/actions/workflows/test.yml/badge.svg)](https://github.com/rtbo/plotive/actions/workflows/test.yml)\n\n## Overview and features\n\nPlotive decouples figure design from data and from rendering surfaces.\n\n### Supported series types\n - XY line plots\n - Scatter plots\n - Histograms and bar plots\n\nMore will come. Don't hesitate to open an issue to request a feature!\n\n### Modular architecture\n\n - **Declarative design** (`plotive::des`)\n   - Design of figure is entirely declarative and decoupled from data and drawing primitives\n   - Sensible defaults. Most types that populates design implement carefully crafted `Default` trait.\n   - Figure units are decorrelated from pixel size for easy scaling\n   - `.plotive` DSL language for concise figure description.\nThis DSL is still fairly incomplete, but all examples in the repo are working.\n\n - **Data sources** (`plotive::data`)\n   - Flexible, column-friendly data source system\n   - Support for CSV and [polars](https://pola.rs) is included\n\n - **Rendering surfaces** (`plotive::render` and separate crates)\n   - `plotive-pxl`: Rasterized rendering (PNG, or pixels array)\n   - `plotive-svg`: SVG rendering\n   - `plotive-iced`: GUI rendering with [iced](https://iced.rs).\n\n\n### Automatic Layout\n - All the layout is done consistently and automatically.\u003cbr /\u003e\n You can add multiple axes, multiple plots etc.\n Everything will be laid-out consistently, leaving enough space for axis ticks labels, legends etc.  Your code never need to calculate size of anything.\n\n### Advanced typography\n - Automatic font look-up and text shaping\n - Rich text\n - Automatic right to left layout using unicode-bidirectional algorithm\n - vertical layout\n\n### Themes\n - Change the theme of your figure with a single line of code (see the bode diagram hereunder)\n\n### Annotations\n - Annotate your figures, with labels, infinite lines, markers etc.\n - Annotations are placed using data space coordinates\n\n### GUI integration and real-time rendering\n - The crate `plotive-iced` provides a `Figure` widget.\u003cbr /\u003e\nThanks to separation of data from design, redraws of the same figure with different data\nis very efficient and compatible with real-time rendering, up to hundreds of redraws per second.\n\n\n\n## Gallery\n\n![a simple sine plot](gallery/sine.png)\n![a bode diagram](gallery/bode_rlc.png)\n![a bode diagram with catpuccin mocha theme](gallery/bode_rlc_mocha.png)\n![a plot with multiple axes](gallery/multiple_axes.png)\n![a plot with normal distribution](gallery/gauss.png)\n\n(a few more in the gallery folder)\n\n## Get started\n\nAdd `plotive` to your project, as well as one or more of the surface backend crates.\u003cbr /\u003e\n(here `plotive-iced`, a GUI crate for [iced.rs](https://iced.rs))\n```\ncargo add plotive\ncargo add plotive-iced\n```\n\nTo create a figure, you start by declaring its design with the `des` module, referencing data that will come later.\nThe design structure is purely declarative, own all its data and very lightweight:\n\n```rust\nuse plotive::des;\n\nlet x_axis = des::Axis::new()\n    .with_title(\"x\".into())\n    .with_ticks(\n        des::axis::Ticks::new()\n            .with_locator(des::axis::ticks::PiMultipleLocator::default().into()),\n    )\n    .with_grid(Default::default());\n\nlet y_axis = des::Axis::new()\n    .with_title(\"y\".into())\n    .with_ticks(Default::default())\n    .with_grid(Default::default())\n    .with_minor_ticks(Default::default())\n    .with_minor_grid(Default::default());\n\nlet series = des::series::Line::new(des::data_src_ref(\"x\"), des::data_src_ref(\"y\"))\n    .with_name(\"y=sin(x)\")\n    .into();\n\nlet plot = des::Plot::new(vec![series])\n    .with_x_axis(x_axis)\n    .with_y_axis(y_axis)\n    .with_legend(des::plot::LegendPos::InTopRight.into());\n\nlet fig = des::Figure::new(plot.into()).with_title(\"a sine wave\".into());\n```\n\nThen (or before) you can prepare the data to be plotted with any structure implementing the column-friendly trait `plotive::data::Source`.\n\n```rust\nuse plotive::data;\n\nlet x: Vec\u003cf64\u003e = (0..=360).map(|t| t as f64 * PI / 180.0).collect();\nlet y = x.iter().map(|x| x.sin()).collect();\n\nlet data_source = data::TableSource::new()\n    .with_f64_column(\"x\", x)\n    .with_f64_column(\"y\", y);\n```\n\nEverything is ready. You can use any of the crate providing implementation for `plotive::render::Surface` to either save to an image file, or show it in a GUI:\n\n```rust\nuse plotive_iced::Show;\n\nfig.show(Arc::new(data_source), Default::default()).unwrap();\n```\n\nDuring execution, the following window shows:\n\n![Iced window with sine wave](gallery/iced_sine.png)\n\n## Crate features\n\n - `data-csv`: enables CSV data source support ([`plotive::data::csv`](https://docs.rs/plotive/latest/plotive/data/csv/index.html))\n - `data-polars`: enables [Polars](https://pola.rs) data source support ([`plotive::data::polars`](https://docs.rs/plotive/latest/plotive/data/polars/index.html)).\u003cbr /\u003e\n   Pulls in the `polars` dependency, which is quite a beast to compile.\n - `dsl`: enables the support for `.plotive` DSL.\n - `noto-mono`, `noto-sans`, `noto-sans-italic`, `noto-serif`, `noto-serif-italic`: bundles the corresponding fonts from Google in the final executable, and enables `plotive::bundled_font_db()`.\u003cbr /\u003e\n  `noto-sans` is enabled by default\n - `time`: enables support for time series, CSV date-time parsing etc. ([`plotive::time`](https://docs.rs/plotive/latest/plotive/time/index.html))\n - `utils`: enables various utilities such as `linspace`, `logspace` etc. ([`plotive::utils`](https://docs.rs/plotive/latest/plotive/utils/index.html))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtbo%2Fplotive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtbo%2Fplotive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtbo%2Fplotive/lists"}