Struct plotpy::Plot[][src]

pub struct Plot { /* fields omitted */ }

Implementations

Generates scatter plot given two arrays (x,y)

Arguments

  • x - abscissa array
  • y - ordinate array
use plotpy::*;
let x = &[1.0, 2.0, 3.0, 4.0, 5.0];
let y = &[1.0, 4.0, 9.0, 16.0, 25.0];
let mut plt = Plot::new();
plt.scatter(x, y);

Saves figure to disk

Arguments

  • output_dir - Creates a directory to save the figure, and temporary files
  • filename_key - The filename without extension
  • filename_ext - The extension of the filename; e.g., “png” or “svg”

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.