#plot-data #egui-plot #plotter #charts #color #arange

plot_starter

A simple library to quickly plot data using egui_plot

7 releases

Uses new Rust 2024

0.34.6 Oct 25, 2025
0.34.5 Oct 25, 2025

#246 in Visualization

MIT license

31KB
135 lines

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, Color, arange};
fn main() -> Result<(), Box<dyn std::error::Error>> {
   let plotter = Plotter::new();

   Chart::on(&plotter)
       .data(arange(-10.0 .. 10.0, 0.1).map(|x| (x, x.sin())))
       .color(Color::RED);

   plotter.present()
}

Running the Example

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

cargo run --example demo

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

Dependencies

~8–34MB
~525K SLoC