From de6adb74b6cf3c2112b7d14023b5961fce96c11e Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Fri, 11 Feb 2022 14:35:04 -0500 Subject: [PATCH] cleanup --- src/func_plot.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/func_plot.rs b/src/func_plot.rs index b9e4170..474ab1d 100644 --- a/src/func_plot.rs +++ b/src/func_plot.rs @@ -21,10 +21,10 @@ pub fn draw( root.fill(&WHITE)?; let mut chart = ChartBuilder::on(&root) - .margin(20 as f32) + .margin(20.0) .caption(format!("y={}", func_str), font) - .x_label_area_size(30 as f32) - .y_label_area_size(30 as f32) + .x_label_area_size(30.0) + .y_label_area_size(30.0) .build_cartesian_2d(min_x..max_x, min_y..max_y)?; chart.configure_mesh().x_labels(3).y_labels(3).draw()?;