This commit is contained in:
Simon Gardling 2022-04-06 11:36:17 -04:00
parent 30b5a15cc8
commit 63e6e06c0f

View File

@ -336,15 +336,13 @@ impl FunctionEntry {
} }
// Plot derivative data // Plot derivative data
if self.derivative { if self.derivative && !self.derivative_data.is_empty() {
if !self.derivative_data.is_empty() { plot_ui.line(
plot_ui.line( self.derivative_data
self.derivative_data .to_line()
.to_line() .color(Color32::GREEN)
.color(Color32::GREEN) .name(derivative_str),
.name(derivative_str), );
);
}
} }
// Plot extrema points // Plot extrema points