quick_plot_3d

Function quick_plot_3d 

Source
pub fn quick_plot_3d(
    x: impl Into<Vec<f64>>,
    y: impl Into<Vec<f64>>,
    z: impl Into<Vec<f64>>,
) -> Figure
Expand description

Quickly create a 3D plot.

§Arguments

  • x - x-axis data.
  • y - y-axis data.
  • z - z-axis data.

§Returns

Figure.

§Example

use plotting::{quick_plot_3d, Figure};

let fig: Figure = quick_plot_3d([1.0, 2.0, 10.0], [1.0, 4.0, 9.0], [2.0, 5.0, 10.0]);

§Additional examples

Additional examples can be found at https://tamaskis.github.io/plotting/plot_3d/quick_3d_plot.html.

Examples found in repository?
examples/quick_plot_3d.rs (line 6)
4fn main() {
5    // Create the figure.
6    let fig: Figure = quick_plot_3d([1.0, 2.0, 10.0], [1.0, 4.0, 9.0], [2.0, 5.0, 10.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_3d.html"));
10
11    // Alternatively, you can show the figure in a web browser.
12    // fig.show();
13}