pub struct MatlabPlot {
pub title: String,
pub xlabel: String,
pub ylabel: String,
pub series: Vec<(String, String)>,
pub grid: bool,
pub legend: bool,
pub figure_size: Option<[f64; 2]>,
}Expand description
A MATLAB plot specification.
Fields§
§title: StringFigure title.
xlabel: StringX-axis label.
ylabel: StringY-axis label.
series: Vec<(String, String)>Data series (each is a variable name + style string).
grid: boolWhether to use a grid.
legend: boolWhether to use a legend.
figure_size: Option<[f64; 2]>Figure size [width, height] in points.
Implementations§
Trait Implementations§
Source§impl Clone for MatlabPlot
impl Clone for MatlabPlot
Source§fn clone(&self) -> MatlabPlot
fn clone(&self) -> MatlabPlot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatlabPlot
impl Debug for MatlabPlot
Source§impl PartialEq for MatlabPlot
impl PartialEq for MatlabPlot
impl StructuralPartialEq for MatlabPlot
Auto Trait Implementations§
impl Freeze for MatlabPlot
impl RefUnwindSafe for MatlabPlot
impl Send for MatlabPlot
impl Sync for MatlabPlot
impl Unpin for MatlabPlot
impl UnsafeUnpin for MatlabPlot
impl UnwindSafe for MatlabPlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more