[][src]Struct plotters::chart::SeriesLabelStyle

pub struct SeriesLabelStyle<'a, 'b, DB: DrawingBackend, CT: CoordTranslate> { /* fields omitted */ }

The struct to specify the series label of a target chart context

Methods

impl<'a, 'b, DB: DrawingBackend + 'a, CT: CoordTranslate> SeriesLabelStyle<'a, 'b, DB, CT>[src]

pub fn position(&mut self, pos: SeriesLabelPosition) -> &mut Self[src]

Set the series label positioning style pos - The positioning style

pub fn margin<S: SizeDesc>(&mut self, value: S) -> &mut Self[src]

Set the margin of the series label drawing are

  • value: The size specification

pub fn legend_area_size<S: SizeDesc>(&mut self, size: S) -> &mut Self[src]

Set the size of legend area size - The size of legend area in pixel

pub fn border_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self[src]

Set the style of the label series area style - The style of the border

pub fn background_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self[src]

Set the background style style - The style of the border

pub fn label_font<F: IntoTextStyle<'b>>(&mut self, font: F) -> &mut Self[src]

Set the series label font font - The font

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

Draw the series label area

Auto Trait Implementations

impl<'a, 'b, DB, CT> !Send for SeriesLabelStyle<'a, 'b, DB, CT>

impl<'a, 'b, DB, CT> Unpin for SeriesLabelStyle<'a, 'b, DB, CT> where
    'a: 'b, 

impl<'a, 'b, DB, CT> !Sync for SeriesLabelStyle<'a, 'b, DB, CT>

impl<'a, 'b, DB, CT> !UnwindSafe for SeriesLabelStyle<'a, 'b, DB, CT>

impl<'a, 'b, DB, CT> !RefUnwindSafe for SeriesLabelStyle<'a, 'b, DB, CT>

Blanket Implementations

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

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

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

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

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

impl<T> SetParameter for T

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]