aboutsummaryrefslogtreecommitdiff
path: root/src/plot/plotters_backend/regression.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot/plotters_backend/regression.rs')
-rwxr-xr-xsrc/plot/plotters_backend/regression.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plot/plotters_backend/regression.rs b/src/plot/plotters_backend/regression.rs
index 54bffa6..c944dbb 100755
--- a/src/plot/plotters_backend/regression.rs
+++ b/src/plot/plotters_backend/regression.rs
@@ -53,7 +53,7 @@ pub(crate) fn regression_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
@@ -61,7 +61,7 @@ pub(crate) fn regression_figure(
.x_desc(x_label)
.y_desc(format!("Total sample time ({})", unit))
.x_label_formatter(&|x| pretty_print_float(x * x_scale, true))
- .line_style_2(&TRANSPARENT)
+ .light_line_style(&TRANSPARENT)
.draw()
.unwrap();
@@ -179,7 +179,7 @@ pub(crate) fn regression_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_iters, 0.0..y_max)
+ .build_cartesian_2d(0.0..max_iters, 0.0..y_max)
.unwrap();
chart
@@ -187,7 +187,7 @@ pub(crate) fn regression_comparison_figure(
.x_desc(x_label)
.y_desc(format!("Total sample time ({})", unit))
.x_label_formatter(&|x| pretty_print_float(x * x_scale, true))
- .line_style_2(&TRANSPARENT)
+ .light_line_style(&TRANSPARENT)
.draw()
.unwrap();