pub struct TextPlot<'a> { /* private fields */ }Expand description
Builder for text plots with extensive customization options
Text plots allow placing text labels at specific coordinates in the plot area.
Implementations§
Source§impl<'a> TextPlot<'a>
impl<'a> TextPlot<'a>
Sourcepub fn new(text: &'a str, x: f64, y: f64) -> Self
pub fn new(text: &'a str, x: f64, y: f64) -> Self
Create a new text plot with the given text and position
Sourcepub fn with_pixel_offset(self, offset_x: f64, offset_y: f64) -> Self
pub fn with_pixel_offset(self, offset_x: f64, offset_y: f64) -> Self
Set pixel offset for fine positioning
Sourcepub fn with_flags(self, flags: TextFlags) -> Self
pub fn with_flags(self, flags: TextFlags) -> Self
Set text flags for customization
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TextPlot<'a>
impl<'a> RefUnwindSafe for TextPlot<'a>
impl<'a> Send for TextPlot<'a>
impl<'a> Sync for TextPlot<'a>
impl<'a> Unpin for TextPlot<'a>
impl<'a> UnwindSafe for TextPlot<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more