| Crates.io | painter |
| lib.rs | painter |
| version | 0.1.7 |
| created_at | 2025-12-28 11:56:19.222657+00 |
| updated_at | 2026-01-23 08:59:42.443691+00 |
| description | A simple plotter library |
| homepage | |
| repository | https://github.com/Tzlzl12/painter |
| max_upload_size | |
| id | 2008658 |
| size | 100,287 |
A lightweight plotting library powered by tiny-skia for rendering and winit for window management.
The library provides several ready‑to‑use plot primitives located in src/primitive/:
| Primitive | Description |
|---|---|
| ErrorBar | Horizontal error bars for representing a range (min‑max) with a mean marker. |
| Scatter | Scatter plot with optional point sizes (value) and colors (forth_dim). |
| HeatMap | 2‑D heat‑map visualisation (color‑coded matrix). |
| Area | Filled area chart supporting line and step modes. |
| Histrogram | Histogram (frequency distribution) rendering. |
| Curve | Smooth curve (line) plot. |
| Stair | Stair‑case style plot for step‑wise data. |
| Config | Configuration struct for colors, line width, etc. (used by all primitives). |
cargo run --example scatter # runs the scatter‑plot example
Check the examples/ directory for more demos of each primitive.
MIT