From 3a889f90ae3f291ee21327f5b19bd9b63ac99420 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 25 May 2022 11:30:05 -0400 Subject: [PATCH] remove line names (as legend is no longer shown) --- src/function_entry.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/function_entry.rs b/src/function_entry.rs index e9b0910..b8ad159 100644 --- a/src/function_entry.rs +++ b/src/function_entry.rs @@ -477,7 +477,6 @@ impl FunctionEntry { .to_line() .stroke(epaint::Stroke::none()) .color(Color32::from_rgb(4, 4, 255)) - .name(&self.raw_func_str) .fill(0.0), ); } @@ -485,20 +484,13 @@ impl FunctionEntry { self.back_data .clone() .to_line() - .stroke(egui::Stroke::new(2.0, main_plot_color)) - .name(&self.raw_func_str), + .stroke(egui::Stroke::new(2.0, main_plot_color)), ); } // Plot derivative data if self.derivative && !self.derivative_data.is_empty() { - plot_ui.line( - self.derivative_data - .clone() - .to_line() - .color(Color32::GREEN) - .name(self.function.get_derivative_str()), - ); + plot_ui.line(self.derivative_data.clone().to_line().color(Color32::GREEN)); } // Plot extrema points @@ -508,7 +500,6 @@ impl FunctionEntry { .clone() .to_points() .color(Color32::YELLOW) - .name("Extrema") .radius(5.0), // Radius of points of Extrema ); } @@ -520,7 +511,6 @@ impl FunctionEntry { .clone() .to_points() .color(Color32::LIGHT_BLUE) - .name("Root") .radius(5.0), // Radius of points of Roots ); } @@ -530,7 +520,6 @@ impl FunctionEntry { nth_derviative.clone() .to_line() .color(Color32::DARK_RED) - .name(self.function.get_nth_derivative_str()), ); }