| Crates.io | plot_starter |
| lib.rs | plot_starter |
| version | 0.34.6 |
| created_at | 2025-10-25 03:41:17.68291+00 |
| updated_at | 2025-10-25 10:20:39.858943+00 |
| description | A simple library to quickly plot data using `egui_plot`. |
| homepage | |
| repository | https://github.com/bombless/plot_starter |
| max_upload_size | |
| id | 1899657 |
| size | 112,378 |
A simple library to quickly plot data using egui_plot.
Add plot_starter to your Cargo.toml:
[dependencies]
plot_starter = "0.34"
Then, use it in your code:
use plot_starter::{Plotter, Chart};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let plotter = Plotter::new();
let data = (-500..=500).map(|x| x as f64 / 50.0).map(|x| (x, x.sin()));
Chart::on(&plotter).data(data);
plotter.present()
}
To run the included demo, clone the repository and run:
cargo run --example demo