graplot 0.1.22

Experimental plotting library based on macroquad
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use graplot::{Scatter, Desc};

fn main() {
    let x = [5.,7.,8.,7.,2.,17.,2.,9.,4.,11.,12.,9.,6.];
    let y = [99.,86.,87.,88.,111.,86.,70.,87.,94.,78.,77.,85.,86.];

    let mut scat = Scatter::new((x, y));
    scat.set_desc(Desc {
        spacing_y: 60.,
        spacing_x: 60.,
        ..Default::default()
    });
    scat.add(([2., 10.5], [50., 114.], "r-"));
    scat.show();
}