pub struct Plot { /* fields omitted */ }
Generates scatter plot given two arrays (x,y)
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
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”
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.