pub struct AxisOptions {
pub range: PlotRange,
pub transform: TransformType,
pub label: Option<String>,
}Expand description
Options for configuring a plot axis
Controls the range, transformation, and label for a single axis.
§Example
use flow_plots::options::AxisOptions;
use flow_fcs::TransformType;
let axis = AxisOptions::new()
.range(0.0..=200_000.0)
.transform(TransformType::Arcsinh { cofactor: 150.0 })
.label("FSC-A")
.build()?;Fields§
§range: PlotRangeData range for this axis
transform: TransformTypeTransform to apply to axis labels
label: Option<String>Optional axis label
Implementations§
Source§impl AxisOptions
impl AxisOptions
Sourcepub fn new() -> AxisOptionsBuilder
pub fn new() -> AxisOptionsBuilder
Create a new builder for AxisOptions
Trait Implementations§
Source§impl Clone for AxisOptions
impl Clone for AxisOptions
Source§fn clone(&self) -> AxisOptions
fn clone(&self) -> AxisOptions
Returns a duplicate 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 AxisOptions
impl Debug for AxisOptions
Auto Trait Implementations§
impl Freeze for AxisOptions
impl RefUnwindSafe for AxisOptions
impl Send for AxisOptions
impl Sync for AxisOptions
impl Unpin for AxisOptions
impl UnsafeUnpin for AxisOptions
impl UnwindSafe for AxisOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().