aboutsummaryrefslogtreecommitdiff
path: root/examples/matshow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/matshow.rs')
-rw-r--r--examples/matshow.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/matshow.rs b/examples/matshow.rs
index 186fcba..8cc03ea 100644
--- a/examples/matshow.rs
+++ b/examples/matshow.rs
@@ -10,7 +10,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.margin(5)
.top_x_label_area_size(40)
.y_label_area_size(40)
- .build_ranged(0i32..15i32, 15i32..0i32)?;
+ .build_cartesian_2d(0i32..15i32, 15i32..0i32)?;
chart
.configure_mesh()
@@ -50,3 +50,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
+#[test]
+fn entry_point() {
+ main().unwrap()
+}