pub enum TickFormat {
Auto,
Decimals(usize),
Scientific,
Labels(Vec<String>),
}Expand description
Axis tick label presentation paired with explicit tick positions.
Applies to ticks recorded through Axes::xticks/Axes::yticks;
Labels pairs one string per explicit value and requires equal lengths.
Variants§
Auto
Precision derived from the explicit positions’ spacing.
Decimals(usize)
Fixed decimal places — Decimals(2) renders 1.25.
Scientific
Scientific notation — 1.2e3.
Labels(Vec<String>)
Caller-provided labels, one per explicit tick value in order.
Trait Implementations§
Source§impl Clone for TickFormat
impl Clone for TickFormat
Source§impl Debug for TickFormat
impl Debug for TickFormat
Auto Trait Implementations§
impl Forget for TickFormat
impl Freeze for TickFormat
impl Move for TickFormat
impl RefUnwindSafe for TickFormat
impl Send for TickFormatwhere
RawVecInner: Send,
impl Sync for TickFormatwhere
RawVecInner: Sync,
impl Unpin for TickFormat
impl UnsafeUnpin for TickFormat
impl UnwindSafe for TickFormatwhere
RawVecInner: UnwindSafe,
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