pub struct TickLabels {
pub axis: Axis,
pub v: Vec<f64>,
pub s: Vec<String>,
pub opts: Vec<Opt>,
}
Expand description
Set the values and labels for which ticks are placed on an axis.
ax.set_{axis}ticks({v}, labels={s}, **{opts})
Prelude: No
JSON data: [list[float], list[str]]
.
Fields§
§axis: Axis
Which axis.
v: Vec<f64>
Tick values.
s: Vec<String>
Tick labels.
opts: Vec<Opt>
Optional keyword arguments.
Implementations§
Trait Implementations§
Source§impl Clone for TickLabels
impl Clone for TickLabels
Source§fn clone(&self) -> TickLabels
fn clone(&self) -> TickLabels
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TickLabels
impl Debug for TickLabels
Source§impl Matplotlib for TickLabels
impl Matplotlib for TickLabels
Source§fn is_prelude(&self) -> bool
fn is_prelude(&self) -> bool
Return
true
if self
should be considered as a prelude item, which
are execute in the order seen but before any non-prelude items.Source§impl MatplotlibOpts for TickLabels
impl MatplotlibOpts for TickLabels
Source§impl PartialEq for TickLabels
impl PartialEq for TickLabels
impl StructuralPartialEq for TickLabels
Auto Trait Implementations§
impl Freeze for TickLabels
impl RefUnwindSafe for TickLabels
impl Send for TickLabels
impl Sync for TickLabels
impl Unpin for TickLabels
impl UnwindSafe for TickLabels
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