Struct rtplot::FigureConfig[][src]

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

impl<'a> Clone for FigureConfig<'a>[src]

impl<'a> Default for FigureConfig<'a>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.