quick_plot_2d/quick_plot_2d.rs
1use plotting::{Figure, quick_plot_2d};
2use std::path::Path;
3
4fn main() {
5 // Create the figure.
6 let fig: Figure = quick_plot_2d([1.0, 2.0, 3.0], [1.0, 4.0, 9.0]);
7
8 // Save the figure so it can be displayed right below this example.
9 fig.save_inline_html(Path::new("book/src/figures/quick_plot_2d.html"));
10
11 // Alternatively, you can show the figure in a web browser.
12 // fig.show();
13}