pub struct FormattedTextPlot { /* private fields */ }Expand description
Formatted text plot with dynamic content
Implementations§
Source§impl FormattedTextPlot
impl FormattedTextPlot
Sourcepub fn from_format(x: f64, y: f64, args: Arguments<'_>) -> Self
pub fn from_format(x: f64, y: f64, args: Arguments<'_>) -> Self
Create a formatted text plot from format arguments
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
Sourcepub fn with_item_flags(self, flags: ItemFlags) -> Self
pub fn with_item_flags(self, flags: ItemFlags) -> Self
Set common item flags for this plot item (applies to all plot types)
Trait Implementations§
Source§impl PlotData for FormattedTextPlot
impl PlotData for FormattedTextPlot
Source§impl PlotItemStyled for FormattedTextPlot
impl PlotItemStyled for FormattedTextPlot
fn style_mut(&mut self) -> &mut PlotItemStyle
Source§fn with_style(self, style: PlotItemStyle) -> Self
fn with_style(self, style: PlotItemStyle) -> Self
Replace the entire item style override for this plot.
Source§fn with_line_color(self, color: [f32; 4]) -> Self
fn with_line_color(self, color: [f32; 4]) -> Self
Set the line color. Use the alpha channel to control line transparency.
Source§fn with_line_weight(self, weight: f32) -> Self
fn with_line_weight(self, weight: f32) -> Self
Set the line width in pixels.
Source§fn with_fill_color(self, color: [f32; 4]) -> Self
fn with_fill_color(self, color: [f32; 4]) -> Self
Set the fill color.
Source§fn with_fill_alpha(self, alpha: f32) -> Self
fn with_fill_alpha(self, alpha: f32) -> Self
Set the fill alpha multiplier used for fills and marker faces.
Source§fn with_marker(self, marker: Marker) -> Self
fn with_marker(self, marker: Marker) -> Self
Set the marker type.
Source§fn with_marker_size(self, size: f32) -> Self
fn with_marker_size(self, size: f32) -> Self
Set the marker size in pixels.
Source§fn with_marker_line_color(self, color: [f32; 4]) -> Self
fn with_marker_line_color(self, color: [f32; 4]) -> Self
Set the marker outline color.
Source§fn with_marker_fill_color(self, color: [f32; 4]) -> Self
fn with_marker_fill_color(self, color: [f32; 4]) -> Self
Set the marker fill color.
Auto Trait Implementations§
impl Freeze for FormattedTextPlot
impl RefUnwindSafe for FormattedTextPlot
impl Send for FormattedTextPlot
impl Sync for FormattedTextPlot
impl Unpin for FormattedTextPlot
impl UnsafeUnpin for FormattedTextPlot
impl UnwindSafe for FormattedTextPlot
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