quick_plot_2d_with_labels/
quick_plot_2d_with_labels.rs

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