pub struct AxisConfig {Show 14 fields
pub label: Option<String>,
pub scale: Scale,
pub min: Option<f64>,
pub max: Option<f64>,
pub major_step: Option<f64>,
pub minor: Minor,
pub grid_major: bool,
pub grid_minor: bool,
pub decimals: Option<u8>,
pub tick_labels: bool,
pub label_size: Option<f32>,
pub label_color: Option<Color32>,
pub tick_color: Option<Color32>,
pub categories: Option<Vec<String>>,
}Expand description
One axis: range, scale, ticks, grid, and labels.
Fields§
§label: Option<String>The axis title.
scale: ScaleLinear or log10.
min: Option<f64>Fixed lower limit in data units; automatic when None.
max: Option<f64>Fixed upper limit in data units; automatic when None.
major_step: Option<f64>Distance between major ticks in data units (decades on log axes); 1-2-5 when
None.
minor: MinorMinor ticks between majors.
grid_major: boolGrid lines at major ticks.
grid_minor: boolGrid lines at minor ticks.
decimals: Option<u8>Decimals of the tick labels; from the step when None.
tick_labels: boolDraw the tick labels.
label_size: Option<f32>Axis title size in points; PlotConfig::label_size when None.
label_color: Option<Color32>Axis title color; PlotColors::text (or the theme) when None.
tick_color: Option<Color32>Tick labels and tick marks; the theme when None. Coloring the right axis like
its series tells the two axes apart.
categories: Option<Vec<String>>Labels for Scale::Category, in index order.
Trait Implementations§
Source§impl Clone for AxisConfig
impl Clone for AxisConfig
Source§impl Debug for AxisConfig
impl Debug for AxisConfig
Source§impl Default for AxisConfig
impl Default for AxisConfig
Source§impl<'de> Deserialize<'de> for AxisConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AxisConfig
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AxisConfig
impl PartialEq for AxisConfig
Source§impl Serialize for AxisConfig
Available on crate feature serde only.
impl Serialize for AxisConfig
Available on crate feature
serde only.impl StructuralPartialEq for AxisConfig
Auto Trait Implementations§
impl Forget for AxisConfig
impl Freeze for AxisConfig
impl Move for AxisConfig
impl RefUnwindSafe for AxisConfig
impl Send for AxisConfigwhere
RawVecInner: Send,
impl Sync for AxisConfigwhere
RawVecInner: Sync,
impl Unpin for AxisConfig
impl UnsafeUnpin for AxisConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AxisConfigwhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more