Struct Axis

Source
pub struct Axis { /* private fields */ }

Implementations§

Source§

impl Axis

Source

pub fn new() -> Axis

Source

pub fn visible(self, visible: bool) -> Axis

Source

pub fn color<C: Color>(self, color: C) -> Axis

Source

pub fn title(self, title: Title) -> Axis

Source

pub fn type_(self, t: AxisType) -> Axis

Source

pub fn auto_range(self, auto_range: bool) -> Axis

Source

pub fn range_mode(self, range_mode: RangeMode) -> Axis

Source

pub fn range<C: NumOrString>(self, range: Vec<C>) -> Axis

Source

pub fn fixed_range(self, fixed_range: bool) -> Axis

Source

pub fn constrain(self, constrain: AxisConstrain) -> Axis

Source

pub fn constrain_toward(self, constrain_toward: ConstrainDirection) -> Axis

Source

pub fn tick_mode(self, tick_mode: TickMode) -> Axis

Source

pub fn n_ticks(self, n_ticks: usize) -> Axis

Source

pub fn tick0(self, tick0: f64) -> Axis

Source

pub fn dtick(self, dtick: f64) -> Axis

Source

pub fn tick_values(self, tick_values: Vec<f64>) -> Axis

Source

pub fn tick_text(self, tick_text: Vec<String>) -> Axis

Source

pub fn ticks(self, ticks: TicksDirection) -> Axis

Source

pub fn ticks_on(self, ticks_on: TicksPosition) -> Axis

Source

pub fn mirror(self, mirror: bool) -> Axis

Source

pub fn tick_length(self, tick_length: usize) -> Axis

Source

pub fn tick_width(self, tick_width: usize) -> Axis

Source

pub fn tick_color<C: Color>(self, tick_color: C) -> Axis

Source

pub fn show_tick_labels(self, show_tick_labels: bool) -> Axis

Source

pub fn auto_margin(self, auto_margin: bool) -> Axis

Source

pub fn show_spikes(self, show_spikes: bool) -> Axis

Source

pub fn spike_color<C: Color>(self, spike_color: C) -> Axis

Source

pub fn spike_thickness(self, spike_thickness: usize) -> Axis

Source

pub fn spike_dash(self, spike_dash: DashType) -> Axis

Source

pub fn spike_mode(self, spike_mode: &str) -> Axis

Source

pub fn spike_snap(self, spike_snap: &str) -> Axis

Source

pub fn tick_font(self, tick_font: Font) -> Axis

Source

pub fn tick_angle(self, tick_angle: f64) -> Axis

Source

pub fn tick_prefix(self, tick_prefix: &str) -> Axis

Source

pub fn show_tick_prefix(self, show_tick_prefix: ArrayShow) -> Axis

Source

pub fn tick_suffix(self, tick_suffix: &str) -> Axis

Source

pub fn show_tick_suffix(self, show_tick_suffix: ArrayShow) -> Axis

Source

pub fn show_exponent(self, show_exponent: ArrayShow) -> Axis

Source

pub fn exponent_format(self, exponent_format: &str) -> Axis

Source

pub fn separate_thousands(self, separate_thousands: bool) -> Axis

Source

pub fn tick_format(self, tick_format: &str) -> Axis

Source

pub fn tick_format_stops(self, tick_format_stops: Vec<TickFormatStop>) -> Axis

Source

pub fn hover_format(self, hover_format: &str) -> Axis

Source

pub fn show_line(self, show_line: bool) -> Axis

Source

pub fn line_color<C: Color>(self, line_color: C) -> Axis

Source

pub fn line_width(self, line_width: usize) -> Axis

Source

pub fn show_grid(self, show_grid: bool) -> Axis

Source

pub fn grid_color<C: Color>(self, grid_color: C) -> Axis

Source

pub fn grid_width(self, grid_width: usize) -> Axis

Source

pub fn zero_line(self, zero_line: bool) -> Axis

Source

pub fn zero_line_color<C: Color>(self, zero_line_color: C) -> Axis

Source

pub fn zero_line_width(self, zero_line_width: usize) -> Axis

Source

pub fn show_dividers(self, show_dividers: bool) -> Axis

Source

pub fn divider_color<C: Color>(self, divider_color: C) -> Axis

Source

pub fn divider_width(self, divider_width: usize) -> Axis

Source

pub fn anchor(self, anchor: &str) -> Axis

Source

pub fn side(self, side: Side) -> Axis

Source

pub fn overlaying(self, overlaying: &str) -> Axis

Source

pub fn domain(self, domain: &[f64]) -> Axis

Source

pub fn position(self, position: f64) -> Axis

Source

pub fn range_slider(self, slider: RangeSlider) -> Axis

Source

pub fn range_selector(self, range_selector: RangeSelector) -> Axis

Source

pub fn calendar(self, calendar: Calendar) -> Axis

Trait Implementations§

Source§

impl Debug for Axis

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Axis

Source§

fn default() -> Axis

Returns the “default value” for a type. Read more
Source§

impl Serialize for Axis

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Axis

§

impl RefUnwindSafe for Axis

§

impl Send for Axis

§

impl Sync for Axis

§

impl Unpin for Axis

§

impl UnwindSafe for Axis

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V