pub enum ColorMaps {
Show 17 variants
Viridis,
Plasma,
Inferno,
Magma,
Turbo,
Cividis,
Warm,
Cool,
CubehelixDefault,
Rainbow,
Jet,
Spectral,
Bone(Bone),
Mandelbrot(MandelbrotHSL),
BlackWhite(BlackWhite),
Volcano(VulcanoHSL),
ViridisRGB(ViridisRGB),
}Expand description
Color map options for density plots
This enum provides access to a wide variety of colormaps suitable for scientific data visualization. Colormaps are categorized into:
- Perceptually uniform sequential: Viridis, Plasma, Inferno, Magma, Turbo (excellent for continuous data, colorblind-friendly)
- Traditional: Rainbow, Jet (colorful but less perceptually uniform)
- Grayscale: Bone, BlackWhite (useful for printing)
- Specialized: Mandelbrot, Volcano (artistic/experimental)
§Recommendations
- Default choice:
Viridis- perceptually uniform, colorblind-friendly - High contrast:
Plasma,Inferno,Magma- good for presentations - Traditional:
Rainbow,Jet- colorful but use with caution - Print-friendly:
Bone,BlackWhite- grayscale options
Variants§
Viridis
Viridis - perceptually uniform, colorblind-friendly (default)
Plasma
Plasma - perceptually uniform, high contrast
Inferno
Inferno - perceptually uniform, dark background friendly
Magma
Magma - perceptually uniform, dark to bright
Turbo
Turbo - perceptually uniform, vibrant colors
Cividis
Cividis - colorblind-friendly, optimized for printing
Warm
Warm - warm color palette
Cool
Cool - cool color palette
CubehelixDefault
Cubehelix - perceptually uniform, customizable
Rainbow
Rainbow - traditional rainbow colors (use with caution)
Jet
Jet - traditional jet colormap (use with caution)
Spectral
Spectral - diverging colormap
Bone(Bone)
Bone - grayscale colormap
Mandelbrot(MandelbrotHSL)
Mandelbrot - artistic HSL colormap
BlackWhite(BlackWhite)
BlackWhite - simple grayscale
Volcano(VulcanoHSL)
Volcano - HSL colormap
ViridisRGB(ViridisRGB)
ViridisRGB - Plotters’ Viridis implementation (use Viridis instead)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorMaps
impl RefUnwindSafe for ColorMaps
impl Send for ColorMaps
impl Sync for ColorMaps
impl Unpin for ColorMaps
impl UnwindSafe for ColorMaps
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
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> ⓘ
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> ⓘ
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<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>
ReadEndian::read_from_little_endian().