Skip to content

Commit 1b85ad0

Browse files
committed
Call present at the end of example to make sure an error is thrown for
a missing file
1 parent 6514ed9 commit 1b85ad0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/layout.rs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3636
.legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], &RED));
3737

3838
cc.configure_series_labels().border_style(&BLACK).draw()?;
39+
root.present()?;
3940

4041
Ok(())
4142
}

0 commit comments

Comments
 (0)