pub enum GnuplotPalette {
PresetHSV,
PresetRGB,
CubeHelix(CubeHelixParameter),
RGB(PaletteRGB),
}
Expand description
defines presets for different color palettes
Variants§
PresetHSV
Use preset HSV palette
PresetRGB
Use preset RGB palette, i.e., the default palette of gnuplot
CubeHelix(CubeHelixParameter)
Use a CubeHelix palette
What makes this palette special is, that, if it is converted to black and white, it will be monotonically increasing in perceived brightness (or monotonically decreasing, if you reverse the palette), which is nice for heatmaps
For more info see CubeHelixParameter
RGB(PaletteRGB)
Define a palette in RGB space
Trait Implementations§
Source§impl Clone for GnuplotPalette
impl Clone for GnuplotPalette
Source§fn clone(&self) -> GnuplotPalette
fn clone(&self) -> GnuplotPalette
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 GnuplotPalette
impl Debug for GnuplotPalette
Source§impl<'de> Deserialize<'de> for GnuplotPalette
impl<'de> Deserialize<'de> for GnuplotPalette
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 From<CubeHelixParameter> for GnuplotPalette
impl From<CubeHelixParameter> for GnuplotPalette
Source§fn from(parameter: CubeHelixParameter) -> Self
fn from(parameter: CubeHelixParameter) -> Self
Converts to this type from the input type.
Source§impl From<PaletteRGB> for GnuplotPalette
impl From<PaletteRGB> for GnuplotPalette
Source§fn from(palette: PaletteRGB) -> Self
fn from(palette: PaletteRGB) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GnuplotPalette
impl RefUnwindSafe for GnuplotPalette
impl Send for GnuplotPalette
impl Sync for GnuplotPalette
impl Unpin for GnuplotPalette
impl UnwindSafe for GnuplotPalette
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> 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