Struct plotly::layout::Axis

source ·
pub struct Axis { /* private fields */ }

Implementations§

source§

impl Axis

source

pub fn visible(self, value: bool) -> Self

source

pub fn color(self, value: impl Color) -> Self

source

pub fn title(self, value: Title) -> Self

source

pub fn auto_range(self, value: bool) -> Self

source

pub fn range_mode(self, value: RangeMode) -> Self

source

pub fn range(self, value: Vec<impl Into<NumOrString> + Clone>) -> Self

source

pub fn fixed_range(self, value: bool) -> Self

source

pub fn constrain(self, value: AxisConstrain) -> Self

source

pub fn constrain_toward(self, value: ConstrainDirection) -> Self

source

pub fn tick_mode(self, value: TickMode) -> Self

source

pub fn n_ticks(self, value: usize) -> Self

source

pub fn tick0(self, value: f64) -> Self

source

pub fn dtick(self, value: f64) -> Self

source

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

source

pub fn tick_text(self, value: Vec<impl AsRef<str>>) -> Self

source

pub fn ticks(self, value: TicksDirection) -> Self

source

pub fn ticks_on(self, value: TicksPosition) -> Self

source

pub fn mirror(self, value: bool) -> Self

source

pub fn tick_length(self, value: usize) -> Self

source

pub fn tick_width(self, value: usize) -> Self

source

pub fn tick_color(self, value: impl Color) -> Self

source

pub fn show_tick_labels(self, value: bool) -> Self

source

pub fn auto_margin(self, value: bool) -> Self

source

pub fn show_spikes(self, value: bool) -> Self

source

pub fn spike_color(self, value: impl Color) -> Self

source

pub fn spike_thickness(self, value: usize) -> Self

source

pub fn spike_dash(self, value: DashType) -> Self

source

pub fn spike_mode(self, value: SpikeMode) -> Self

source

pub fn spike_snap(self, value: SpikeSnap) -> Self

source

pub fn tick_font(self, value: Font) -> Self

source

pub fn tick_angle(self, value: f64) -> Self

source

pub fn tick_prefix(self, value: impl AsRef<str>) -> Self

source

pub fn show_tick_prefix(self, value: ArrayShow) -> Self

source

pub fn tick_suffix(self, value: impl AsRef<str>) -> Self

source

pub fn show_tick_suffix(self, value: ArrayShow) -> Self

source

pub fn show_exponent(self, value: ArrayShow) -> Self

source

pub fn exponent_format(self, value: ExponentFormat) -> Self

source

pub fn separate_thousands(self, value: bool) -> Self

source

pub fn tick_format(self, value: impl AsRef<str>) -> Self

source

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

source

pub fn hover_format(self, value: impl AsRef<str>) -> Self

source

pub fn show_line(self, value: bool) -> Self

source

pub fn line_color(self, value: impl Color) -> Self

source

pub fn line_width(self, value: usize) -> Self

source

pub fn show_grid(self, value: bool) -> Self

source

pub fn grid_color(self, value: impl Color) -> Self

source

pub fn grid_width(self, value: usize) -> Self

source

pub fn zero_line(self, value: bool) -> Self

source

pub fn zero_line_color(self, value: impl Color) -> Self

source

pub fn zero_line_width(self, value: usize) -> Self

source

pub fn show_dividers(self, value: bool) -> Self

source

pub fn divider_color(self, value: impl Color) -> Self

source

pub fn divider_width(self, value: usize) -> Self

source

pub fn anchor(self, value: impl AsRef<str>) -> Self

source

pub fn side(self, value: AxisSide) -> Self

source

pub fn overlaying(self, value: impl AsRef<str>) -> Self

source

pub fn position(self, value: f64) -> Self

source

pub fn range_slider(self, value: RangeSlider) -> Self

source

pub fn range_selector(self, value: RangeSelector) -> Self

source

pub fn calendar(self, value: Calendar) -> Self

source§

impl Axis

source

pub fn new() -> Self

source

pub fn matches(self, matches: bool) -> Self

source

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

source

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

Trait Implementations§

source§

impl Clone for Axis

source§

fn clone(&self) -> Axis

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
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() -> Self

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 !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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> Serialize for Twhere T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
§

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

§

fn vzip(self) -> V