aboutsummaryrefslogtreecommitdiff
path: root/src/plot/plotters_backend/iteration_times.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot/plotters_backend/iteration_times.rs')
-rwxr-xr-xsrc/plot/plotters_backend/iteration_times.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plot/plotters_backend/iteration_times.rs b/src/plot/plotters_backend/iteration_times.rs
index a2204df..4d0a22a 100755
--- a/src/plot/plotters_backend/iteration_times.rs
+++ b/src/plot/plotters_backend/iteration_times.rs
@@ -30,14 +30,14 @@ pub(crate) fn iteration_times_figure(
.margin((5).percent())
.set_label_area_size(LabelAreaPosition::Left, (5).percent_width().min(60))
.set_label_area_size(LabelAreaPosition::Bottom, (5).percent_height().min(40))
- .build_ranged(x_range, y_range)
+ .build_cartesian_2d(x_range, y_range)
.unwrap();
chart
.configure_mesh()
.y_desc(format!("Average Iteration Time ({})", unit))
.x_label_formatter(&|x| pretty_print_float(*x, true))
- .line_style_2(&TRANSPARENT)
+ .light_line_style(&TRANSPARENT)
.draw()
.unwrap();
@@ -97,14 +97,14 @@ pub(crate) fn iteration_times_comparison_figure(
.margin((5).percent())
.set_label_area_size(LabelAreaPosition::Left, (5).percent_width().min(60))
.set_label_area_size(LabelAreaPosition::Bottom, (5).percent_height().min(40))
- .build_ranged(0.0..max_samples, y_range)
+ .build_cartesian_2d(0.0..max_samples, y_range)
.unwrap();
chart
.configure_mesh()
.y_desc(format!("Average Iteration Time ({})", unit))
.x_label_formatter(&|x| pretty_print_float(*x, true))
- .line_style_2(&TRANSPARENT)
+ .light_line_style(&TRANSPARENT)
.draw()
.unwrap();