[][src]Struct plotters::chart::MeshStyle

pub struct MeshStyle<'a, X: Ranged, Y: Ranged, DB> where
    DB: DrawingBackend
{ /* fields omitted */ }

The struct that is used for tracking the configuration of a mesh of any chart

Methods

impl<'a, X, Y, DB> MeshStyle<'a, X, Y, DB> where
    X: Ranged,
    Y: Ranged,
    DB: DrawingBackend
[src]

pub fn x_label_offset(&mut self, value: i32) -> &mut Self[src]

pub fn disable_x_mesh(&mut self) -> &mut Self[src]

pub fn disable_y_mesh(&mut self) -> &mut Self[src]

pub fn disable_x_axis(&mut self) -> &mut Self[src]

pub fn disable_y_axis(&mut self) -> &mut Self[src]

pub fn axis_style(&mut self, style: &'a ShapeStyle<'a>) -> &mut Self[src]

pub fn x_labels(&mut self, value: usize) -> &mut Self[src]

Set how many labels for the X axis at most

pub fn y_labels(&mut self, value: usize) -> &mut Self[src]

Set how many label for the Y axis at most

pub fn line_style_1(&mut self, style: &'a ShapeStyle<'a>) -> &mut Self[src]

Set the style for the coarse grid

pub fn line_style_2(&mut self, style: &'a ShapeStyle<'a>) -> &mut Self[src]

Set the style for the fine grid

pub fn label_style(&mut self, style: &'a TextStyle<'a>) -> &mut Self[src]

Set the style of the label text

pub fn x_label_formatter(
    &mut self,
    fmt: &'a dyn Fn(&X::ValueType) -> String
) -> &mut Self
[src]

Set the formatter function for the X label text

pub fn y_label_formatter(
    &mut self,
    fmt: &'a dyn Fn(&Y::ValueType) -> String
) -> &mut Self
[src]

Set the formatter function for the Y label text

pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind<DB::ErrorType>>[src]

Draw the configured mesh on the target plot

Auto Trait Implementations

impl<'a, X, Y, DB> !Send for MeshStyle<'a, X, Y, DB>

impl<'a, X, Y, DB> !Sync for MeshStyle<'a, X, Y, DB>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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, 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> Borrow for T where
    T: ?Sized
[src]

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.