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

Function main

examples/custom_scaling.rs:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use graplot::{x, Desc, Plot};
2
3fn main() {
4 let mut plot = Plot::new((|x: f64| x.cos(), x(5.)));
5 plot.set_desc(Desc {
6 min_steps_x: 6.,
7 spacing_x: 47.,
8 ..Default::default()
9 });
10 plot.show();
11}

Callers

nothing calls this directly

Calls 3

xFunction · 0.85
set_descMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected