We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4de866 commit d903f00Copy full SHA for d903f00
examples/function_svg.rs
@@ -8,7 +8,7 @@ fn main() {
8
let f2 = plotlib::function::Function::new(|x| x.powi(2), 0., 10.)
9
.style(plotlib::function::Style::new().colour("darkolivegreen"));
10
let f3 = plotlib::function::Function::new(|x| x.sqrt() * 20., 0., 10.)
11
- .style(plotlib::function::Style::new().colour("brown").width(1));
+ .style(plotlib::function::Style::new().colour("brown").width(1.));
12
let v = plotlib::view::View::new().add(&f1).add(&f2).add(&f3);
13
plotlib::page::Page::single(&v).save("function.svg");
14
}
0 commit comments