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

Function main

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

Source from the content-addressed store, hash-verified

1use graplot::Plot;
2
3fn main() {
4 let xs = [1., 2., 3.];
5 let ys = [1.7, 3., 1.9];
6
7 let ys1 = [1.4, 1.6, 1.5];
8
9 let ys2 = [0.9, 1.2, 1.7, 1.9, 2.];
10
11 let mut plot = Plot::new((xs, ys));
12 plot.add((xs, ys1, "c-o"));
13 plot.add((ys2, "r-"));
14 plot.show();
15}

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected