Enum sampling::heatmap::GnuplotPalette
source · 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 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
§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