MCPcopy Create free account
hub / github.com/elftausend/graplot / main

Function main

examples/scatter.rs:3–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use graplot::{Scatter, Desc};
2
3fn main() {
4 let x = [5.,7.,8.,7.,2.,17.,2.,9.,4.,11.,12.,9.,6.];
5 let y = [99.,86.,87.,88.,111.,86.,70.,87.,94.,78.,77.,85.,86.];
6
7 let mut scat = Scatter::new((x, y));
8 scat.set_desc(Desc {
9 spacing_y: 60.,
10 spacing_x: 60.,
11 ..Default::default()
12 });
13 scat.add(([2., 10.5], [50., 114.], "r-"));
14 scat.show();
15}

Callers

nothing calls this directly

Calls 3

set_descMethod · 0.45
addMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected