Struct textplots::Chart[][src]

pub struct Chart<'a> { /* fields omitted */ }

Controls the drawing.

Implementations

impl<'a> Chart<'a>[src]

pub fn new(width: u32, height: u32, xmin: f32, xmax: f32) -> Self[src]

Creates a new Chart object.

Panics

Panics if width or height is less than 32.

pub fn display(&mut self)[src]

Prints canvas content.

pub fn nice(&mut self)[src]

Prints canvas content with some additional visual elements (like borders).

pub fn axis(&mut self)[src]

Show axis.

pub fn figures(&mut self)[src]

pub fn frame(&self) -> String[src]

Return the frame.

Trait Implementations

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

impl<'a> Plot<'a> for Chart<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Chart<'a>

impl<'a> !Send for Chart<'a>

impl<'a> !Sync for Chart<'a>

impl<'a> Unpin for Chart<'a>

impl<'a> !UnwindSafe for Chart<'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, 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.