aboutsummaryrefslogtreecommitdiff
path: root/examples/errorbar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/errorbar.rs')
-rw-r--r--examples/errorbar.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/errorbar.rs b/examples/errorbar.rs
index 4ef46d2..7f11dd9 100644
--- a/examples/errorbar.rs
+++ b/examples/errorbar.rs
@@ -22,7 +22,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.margin(10)
.set_label_area_size(LabelAreaPosition::Left, 40)
.set_label_area_size(LabelAreaPosition::Bottom, 40)
- .build_ranged(-10f64..10f64, -10f64..10f64)?;
+ .build_cartesian_2d(-10f64..10f64, -10f64..10f64)?;
chart.configure_mesh().draw()?;
@@ -88,3 +88,7 @@ fn down_sample(data: &[(f64, f64)]) -> Vec<(f64, f64, f64, f64)> {
.collect();
down_sampled
}
+#[test]
+fn entry_point() {
+ main().unwrap()
+}