Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
use graplot::{x, Desc, Plot};
2
3
fn 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
x
Function · 0.85
set_desc
Method · 0.45
show
Method · 0.45
Tested by
no test coverage detected