[][src]Struct lognplot::chart::Chart

pub struct Chart {
    pub title: Option<String>,
    pub x_axis: Axis,
    pub y_axis: Axis,
    pub grid: bool,
    pub curves: Vec<Curve>,
}

A single 2D-chart

Fields

title: Option<String>

An optional title for the plot

x_axis: Axisy_axis: Axisgrid: bool

To show grid or not.

curves: Vec<Curve>

The curves in the plot

Methods

impl Chart[src]

pub fn set_title(&mut self, title: &str)[src]

Set the title of the chart!

pub fn set_xlabel(&mut self, label: &str)[src]

pub fn set_ylabel(&mut self, label: &str)[src]

pub fn add_curve(&mut self, curve: Curve)[src]

Drop a new curve into the mix!

pub fn zoom_horizontal(&mut self, amount: f64)[src]

Zoom horizontally.

pub fn zoom_vertical(&mut self, amount: f64)[src]

Perform vertical zooming

pub fn pan_horizontal(&mut self, amount: f64)[src]

Perform a bit of horizontal panning

pub fn pan_vertical(&mut self, amount: f64)[src]

Perform vertical pan motion on the plot.

pub fn autoscale(&mut self)[src]

Adjust scale ranges so we fit all data in view.

Trait Implementations

impl Clone for Chart[src]

impl Default for Chart[src]

Auto Trait Implementations

impl Send for Chart

impl Sync for Chart

impl Unpin for Chart

impl UnwindSafe for Chart

impl RefUnwindSafe for Chart

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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