graplot 0.1.9

Experimental plotting library based on macroquad
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(target_os = "linux")]
fn main() {
    use graplot::Plot;
    let mut plot = Plot::new(|x: f64| x.powf(3.) + x.powf(2.) - 0.08);
    plot.set_title("x^3 + x^2 - 0.08");
    let h = plot.show_threaded();

    let mut plot = Plot::new(|x: f64| x.powf(2.) + 0.08);
    plot.set_title("");
    plot.show();

    h.join().unwrap() // you need to close both windows
}

#[cfg(not(target_os = "linux"))]
fn main() {}