plot_starter

Crates.ioplot_starter
lib.rsplot_starter
version0.34.6
created_at2025-10-25 03:41:17.68291+00
updated_at2025-10-25 10:20:39.858943+00
descriptionA simple library to quickly plot data using `egui_plot`.
homepage
repositoryhttps://github.com/bombless/plot_starter
max_upload_size
id1899657
size112,378
York Xiang (bombless)

documentation

README

plot_starter

A simple library to quickly plot data using egui_plot.

Usage

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()
}

Running the Example

To run the included demo, clone the repository and run:

cargo run --example demo
Commit count: 0

cargo fmt