[−][src]Struct plotlib::repr::Plot
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]
fn range(&self, dim: u32) -> (f64, f64)
[src]
fn to_svg(
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: f64,
face_height: f64
) -> Group
[src]
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: f64,
face_height: f64
) -> Group
fn legend_svg(&self) -> Option<Group>
[src]
fn to_text(
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: u32,
face_height: u32
) -> String
[src]
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: u32,
face_height: u32
) -> String
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,