[][src]Enum gnuplot::PaletteType

pub enum PaletteType {
    Gray(f32),
    Formula(i32i32i32),
    CubeHelix(f32f32f32f32),
    Custom(Vec<(f32, f32, f32, f32)>),
}

Specifies what sort of palette to use

Variants

Gray(f32)

Use a gray palette with a specified gamma

Formula(i32i32i32)

Use a palette with that uses a predefined formula for each color component. Each formula is identified by an integer between [-36, 36]. See gnuplot documentation, or use the pre-defined constants.

CubeHelix(f32f32f32f32)

Use a cube helix palette, with a certain start (in radians), cycles, saturation and gamma.

Custom(Vec<(f32, f32, f32, f32)>)

A custom palette is specified by a sequence of 4-tuples (with at least one element). The first element is the grayscale value that is mapped to the remaining three elements which specify the red, green and blue components of the color. The grayscale values must be non-decreasing. All values must range from 0 to 1.

Trait Implementations

impl Clone for PaletteType[src]

impl Debug for PaletteType[src]

impl PartialEq<PaletteType> for PaletteType[src]

impl PartialOrd<PaletteType> for PaletteType[src]

impl StructuralPartialEq for PaletteType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.