[][src]Struct plotlib::repr::Plot

pub struct Plot {
    pub data: Vec<(f64, f64)>,
    pub line_style: Option<LineStyle>,
    pub point_style: Option<PointStyle>,
    pub legend: Option<String>,
}

Representation of any plot with points in the XY plane, visualized as points and/or with lines in-between.

Fields

data: Vec<(f64, f64)>line_style: Option<LineStyle>

None if no lines should be displayed

point_style: Option<PointStyle>

None if no points should be displayed

legend: Option<String>

Methods

impl Plot[src]

pub fn new(data: Vec<(f64, f64)>) -> Self[src]

pub fn from_function<F: Fn(f64) -> f64>(f: F, lower: f64, upper: f64) -> Self[src]

pub fn line_style(self, other: LineStyle) -> Self[src]

pub fn point_style(self, other: PointStyle) -> Self[src]

pub fn legend(self, legend: String) -> Self[src]

Trait Implementations

impl Clone for Plot[src]

impl ContinuousRepresentation for Plot[src]

impl Debug for Plot[src]

Auto Trait Implementations

impl RefUnwindSafe for Plot

impl Send for Plot

impl Sync for Plot

impl Unpin for Plot

impl UnwindSafe for Plot

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.