[−][src]Struct lognplot::chart::Chart
A single 2D-chart
Fields
title: Option<String>
An optional title for the plot
x_axis: Axis
y_axis: Axis
grid: 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
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]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,