pub struct FigureConfig<'a> {
pub xlim: Option<[f32; 2]>,
pub ylim: Option<[f32; 2]>,
pub xlabel: Option<&'a str>,
pub ylabel: Option<&'a str>,
pub color: [u8; 3],
pub plot_type: PlotType,
}
Fields§
§xlim: Option<[f32; 2]>
The min and max bounds of the x axis. If set to None, x-axis will be autoscaled. Defaults to None.
ylim: Option<[f32; 2]>
The min and max bounds of the y axis. If set to None, y-axis will be autoscaled. Defaults to None.
xlabel: Option<&'a str>
A label for the x-axis. Defaults to None.
ylabel: Option<&'a str>
A label for the y-axis. Defaults to None.
color: [u8; 3]
The color of points or lines to be drawn onto the graph. Defaults to 0x000000, or black.
plot_type: PlotType
The type of plot to draw. Defaults to a dot plot.
Trait Implementations§
Source§impl<'a> Clone for FigureConfig<'a>
impl<'a> Clone for FigureConfig<'a>
Source§fn clone(&self) -> FigureConfig<'a>
fn clone(&self) -> FigureConfig<'a>
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<'a> Default for FigureConfig<'a>
impl<'a> Default for FigureConfig<'a>
Source§fn default() -> FigureConfig<'a>
fn default() -> FigureConfig<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for FigureConfig<'a>
impl<'a> RefUnwindSafe for FigureConfig<'a>
impl<'a> Send for FigureConfig<'a>
impl<'a> Sync for FigureConfig<'a>
impl<'a> Unpin for FigureConfig<'a>
impl<'a> UnwindSafe for FigureConfig<'a>
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