[][src]Struct implot::PlotText

pub struct PlotText { /* fields omitted */ }

Struct to provide functionality for adding text within a plot

Implementations

impl PlotText[src]

pub fn new(label: &str) -> Self[src]

Create a new text label to be shown. Does not draw anything yet.

pub fn with_pixel_offset(self, offset_x: f32, offset_y: f32) -> Self[src]

Add a pixel offset to the text to be plotted. This offset will be independent of the scaling of the plot itself.

pub fn plot(&self, x: f64, y: f64, vertical: bool)[src]

Draw the text label in the plot at the given position, optionally vertically. Use this in closures passed to Plot::build()

Auto Trait Implementations

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.