[][src]Struct plotlib::view::CategoricalView

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

A view with categorical entries along the x-axis and continuous values along the y-axis

Methods

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

pub fn new() -> CategoricalView<'a>[src]

Create an empty view

pub fn add(self, repr: &'a dyn CategoricalRepresentation) -> Self[src]

Add a representation to the view

pub fn x_ticks(self, ticks: &[String]) -> Self[src]

Set the x range for the view

pub fn y_range(self, min: f64, max: f64) -> Self[src]

Set the y range for the view

pub fn x_label<T>(self, value: T) -> Self where
    T: Into<String>, 
[src]

Set the label for the x-axis

pub fn y_label<T>(self, value: T) -> Self where
    T: Into<String>, 
[src]

Set the label for the y-axis

Trait Implementations

impl<'a> View for CategoricalView<'a>[src]

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

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]