Struct sampling::heatmap::GnuplotAxis
source · pub struct GnuplotAxis { /* private fields */ }
Expand description
For labeling the gnuplot plots axis
Implementations§
source§impl GnuplotAxis
impl GnuplotAxis
sourcepub fn set_rotation(&mut self, rotation_degrees: f32)
pub fn set_rotation(&mut self, rotation_degrees: f32)
Set the rotation value. Tics will be displayed rotaded to the right by the requested amount
sourcepub fn from_labels(labels: Vec<String>) -> Self
pub fn from_labels(labels: Vec<String>) -> Self
Create new GnuplotAxis::Labels
- Vector contains labels used for axis
sourcepub fn from_slice(labels: &[&str]) -> Self
pub fn from_slice(labels: &[&str]) -> Self
Similar to from_labels
- Slice of slice is converted to Vector of Strings and
Self::from_labels(vec)
is called
Trait Implementations§
source§impl Clone for GnuplotAxis
impl Clone for GnuplotAxis
source§fn clone(&self) -> GnuplotAxis
fn clone(&self) -> GnuplotAxis
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 GnuplotAxis
impl Debug for GnuplotAxis
source§impl<'de> Deserialize<'de> for GnuplotAxis
impl<'de> Deserialize<'de> for GnuplotAxis
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
Auto Trait Implementations§
impl RefUnwindSafe for GnuplotAxis
impl Send for GnuplotAxis
impl Sync for GnuplotAxis
impl Unpin for GnuplotAxis
impl UnwindSafe for GnuplotAxis
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<S, T> Cast<T> for Swhere
T: Conv<S>,
impl<S, T> Cast<T> for Swhere
T: Conv<S>,
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
§fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
§fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
§fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
§fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more