Sign in

    Lampese/mathplotlib/core/colors does not have a README file

    ColorError

    pub(all) suberror ColorError {
    InvalidColor(String)
    ComponentOutOfRange(String)
    InvalidColorMap(String)
    }

    Errors raised while parsing a color specification.

    NormalizeError

    pub(all) suberror NormalizeError {
    InvalidBounds(message~ : String)
    InvalidBase(message~ : String)
    InvalidValue(message~ : String)
    NoFiniteData
    NotScaled
    NotInvertible
    }

    Errors raised while constructing or applying a scalar color normalization.

    BoundaryNorm

    pub struct BoundaryNorm {
    boundaries : Array[Double]
    ncolors : Int
    clip : Bool
    extend_mode : String
    }

    Map scalar values into discrete intervals defined by monotonically increasing boundaries.

    BoundaryNorm::autoscale_none

    fn BoundaryNorm::autoscale_none(self : BoundaryNorm, values : Array[Double]) -> Unit

    Boundary normalizations already have fixed bounds; this is a no-op.

    BoundaryNorm::boundaries

    fn BoundaryNorm::boundaries(self : BoundaryNorm) -> Array[Double]

    Return a copy of the boundary values.

    BoundaryNorm::clip

    fn BoundaryNorm::clip(self : BoundaryNorm) -> Bool

    Return whether values outside the boundary range are clipped.

    BoundaryNorm::extend_mode

    fn BoundaryNorm::extend_mode(self : BoundaryNorm) -> String

    Return the extension mode used by this normalization.

    BoundaryNorm::index

    fn BoundaryNorm::index(self : BoundaryNorm, value : Double) -> Int raise NormalizeError

    Return the integer colormap index selected by a boundary normalization. Values below and above the boundaries return -1 and ncolors respectively when clipping is disabled, matching Matplotlib's under/over conventions.

    BoundaryNorm::inverse

    fn BoundaryNorm::inverse(self : BoundaryNorm, value : Double) -> Double raise NormalizeError

    Boundary normalization is discrete and cannot be inverted.

    BoundaryNorm::is_valid

    fn BoundaryNorm::is_valid(self : BoundaryNorm, value : Double) -> Bool

    Return whether a value is finite and can be normalized.

    BoundaryNorm::ncolors

    fn BoundaryNorm::ncolors(self : BoundaryNorm) -> Int

    Return the number of color entries addressed by this normalization.

    BoundaryNorm::scaled

    fn BoundaryNorm::scaled(self : BoundaryNorm) -> Bool

    Boundary normalizations are always ready to transform values.

    BoundaryNorm::transform

    fn BoundaryNorm::transform(self : BoundaryNorm, value : Double) -> Double raise NormalizeError

    Transform a scalar to the normalized position of its discrete color index.

    CenteredNorm

    pub struct CenteredNorm {
    vmin : Double?
    vmax : Double?
    halfrange : Double?
    clip : Bool
    vcenter : Double
    }

    Linear normalization centered on a value with a symmetric half-range.

    CenteredNorm::autoscale

    fn CenteredNorm::autoscale(self : CenteredNorm, values : Array[Double]) -> Unit raise NormalizeError

    Set the half-range to the largest finite distance from the center.

    CenteredNorm::autoscale_none

    fn CenteredNorm::autoscale_none(self : CenteredNorm, values : Array[Double]) -> Unit

    Fill an unset half-range from finite values.

    CenteredNorm::clip

    fn CenteredNorm::clip(self : CenteredNorm) -> Bool

    Return the clipping mode.

    CenteredNorm::halfrange

    fn CenteredNorm::halfrange(self : CenteredNorm) -> Double?

    Return the configured symmetric half-range, if one has been set.

    CenteredNorm::inverse

    fn CenteredNorm::inverse(self : CenteredNorm, value : Double) -> Double raise NormalizeError

    Convert one normalized scalar back to centered data space.

    CenteredNorm::is_valid

    fn CenteredNorm::is_valid(self : CenteredNorm, value : Double) -> Bool

    Return whether a value can be represented by this normalization.

    CenteredNorm::scaled

    fn CenteredNorm::scaled(self : CenteredNorm) -> Bool

    Return whether both centered bounds are set.

    CenteredNorm::set_clip

    fn CenteredNorm::set_clip(self : CenteredNorm, value : Bool) -> Unit

    Set the clipping mode.

    CenteredNorm::set_halfrange

    fn CenteredNorm::set_halfrange(self : CenteredNorm, value : Double?) -> Unit raise NormalizeError

    Set the symmetric half-range and update both bounds.

    CenteredNorm::set_vcenter

    fn CenteredNorm::set_vcenter(self : CenteredNorm, value : Double) -> Unit raise NormalizeError

    Set the center while preserving a configured half-range.

    CenteredNorm::transform

    fn CenteredNorm::transform(self : CenteredNorm, value : Double) -> Double raise NormalizeError

    Transform one finite scalar using a symmetric center and half-range.

    CenteredNorm::transform_array

    fn CenteredNorm::transform_array(self : CenteredNorm, values : Array[Double]) -> Array[Double] raise NormalizeError

    Fill a missing half-range and transform every finite value.

    CenteredNorm::vcenter

    fn CenteredNorm::vcenter(self : CenteredNorm) -> Double

    Return the center value mapped to 0.5.

    CenteredNorm::vmax

    fn CenteredNorm::vmax(self : CenteredNorm) -> Double?

    Return the upper data bound, if one has been set.

    CenteredNorm::vmin

    fn CenteredNorm::vmin(self : CenteredNorm) -> Double?

    Return the lower data bound, if one has been set.

    ColorMap

    pub struct ColorMap {
    name : String
    stops : Array[Rgba]
    discrete : Bool
    under : Rgba?
    over : Rgba?
    bad : Rgba?
    }

    A piecewise-linear scalar colormap.

    ColorMap::bad

    fn ColorMap::bad(self : ColorMap) -> Rgba?

    Return the optional color for non-finite values.

    ColorMap::is_discrete

    fn ColorMap::is_discrete(self : ColorMap) -> Bool

    Return whether this colormap selects a discrete entry for each sample.

    ColorMap::name

    fn ColorMap::name(self : ColorMap) -> String

    Return the colormap name.

    ColorMap::over

    fn ColorMap::over(self : ColorMap) -> Rgba?

    Return the optional over-range color.

    ColorMap::sample

    fn ColorMap::sample(self : ColorMap, value : Double) -> Rgba

    Sample a colormap at a normalized scalar in [0, 1].

    ColorMap::sample_extended

    fn ColorMap::sample_extended(self : ColorMap, value : Double) -> Rgba

    Sample a colormap while honoring configured under, over, and bad colors.

    ColorMap::set_bad

    fn ColorMap::set_bad(self : ColorMap, color : Rgba) -> Unit

    Set the color used for non-finite (masked) values.

    ColorMap::set_over

    fn ColorMap::set_over(self : ColorMap, color : Rgba) -> Unit

    Set the color used for normalized values above one.

    ColorMap::set_under

    fn ColorMap::set_under(self : ColorMap, color : Rgba) -> Unit

    Set the color used for normalized values below zero.

    ColorMap::stops

    fn ColorMap::stops(self : ColorMap) -> Array[Rgba]

    Return a copy of the interpolation stops.

    ColorMap::under

    fn ColorMap::under(self : ColorMap) -> Rgba?

    Return the optional under-range color.

    ColorNorm

    pub(all) enum ColorNorm {
    Linear(Normalize)
    Logarithmic(LogNorm)
    SymmetricLog(SymLogNorm)
    TwoSlope(TwoSlopeNorm)
    Power(PowerNorm)
    Centered(CenteredNorm)
    Boundary(BoundaryNorm)
    }

    A normalization that can be attached to a scalar image or colorbar.

    ColorNorm::autoscale

    fn ColorNorm::autoscale(self : ColorNorm, values : Array[Double]) -> Unit raise NormalizeError

    Set both data bounds from finite values.

    ColorNorm::autoscale_none

    fn ColorNorm::autoscale_none(self : ColorNorm, values : Array[Double]) -> Unit

    Fill missing bounds from an array of scalar values.

    ColorNorm::inverse

    fn ColorNorm::inverse(self : ColorNorm, value : Double) -> Double raise NormalizeError

    Convert one normalized scalar back to data space.

    ColorNorm::is_valid

    fn ColorNorm::is_valid(self : ColorNorm, value : Double) -> Bool

    Return whether a value is valid for this normalization.

    ColorNorm::scaled

    fn ColorNorm::scaled(self : ColorNorm) -> Bool

    Return whether both bounds are set.

    ColorNorm::transform

    fn ColorNorm::transform(self : ColorNorm, value : Double) -> Double raise NormalizeError

    Transform one scalar to normalized color space.

    ColorNorm::vmax

    fn ColorNorm::vmax(self : ColorNorm) -> Double?

    Return the upper data bound, if one has been set.

    ColorNorm::vmin

    fn ColorNorm::vmin(self : ColorNorm) -> Double?

    Return the lower data bound, if one has been set.

    LogNorm

    pub struct LogNorm {
    vmin : Double?
    vmax : Double?
    clip : Bool
    base : Double
    }

    Logarithmically map positive scalar values to the interval [0, 1].

    LogNorm::autoscale

    fn LogNorm::autoscale(self : LogNorm, values : Array[Double]) -> Unit raise NormalizeError

    Set both bounds to the positive finite minimum and maximum in values.

    LogNorm::autoscale_none

    fn LogNorm::autoscale_none(self : LogNorm, values : Array[Double]) -> Unit

    Fill only bounds that are not already set from positive finite values.

    LogNorm::base

    fn LogNorm::base(self : LogNorm) -> Double

    Return the logarithm base.

    LogNorm::clip

    fn LogNorm::clip(self : LogNorm) -> Bool

    Return whether values outside the bounds are clipped.

    LogNorm::inverse

    fn LogNorm::inverse(self : LogNorm, value : Double) -> Double raise NormalizeError

    Convert one normalized scalar back to data space.

    LogNorm::is_valid

    fn LogNorm::is_valid(self : LogNorm, value : Double) -> Bool

    Return whether a value can be represented by this logarithmic norm.

    LogNorm::scaled

    fn LogNorm::scaled(self : LogNorm) -> Bool

    Return whether both bounds are set.

    LogNorm::set_clip

    fn LogNorm::set_clip(self : LogNorm, value : Bool) -> Unit

    Set the clipping mode.

    LogNorm::set_vmax

    fn LogNorm::set_vmax(self : LogNorm, value : Double?) -> Unit raise NormalizeError

    Set the upper data bound.

    LogNorm::set_vmin

    fn LogNorm::set_vmin(self : LogNorm, value : Double?) -> Unit raise NormalizeError

    Set the lower data bound.

    LogNorm::transform

    fn LogNorm::transform(self : LogNorm, value : Double) -> Double raise NormalizeError

    Transform one positive finite scalar to logarithmic color space.

    LogNorm::transform_array

    fn LogNorm::transform_array(self : LogNorm, values : Array[Double]) -> Array[Double] raise NormalizeError

    Fill missing bounds from values and transform positive values.

    LogNorm::vmax

    fn LogNorm::vmax(self : LogNorm) -> Double?

    Return the upper data bound, if one has been set.

    LogNorm::vmin

    fn LogNorm::vmin(self : LogNorm) -> Double?

    Return the lower data bound, if one has been set.

    Normalize

    pub struct Normalize {
    vmin : Double?
    vmax : Double?
    clip : Bool
    }

    Linearly map scalar values to the interval [0, 1].

    Missing bounds are filled from the first finite data passed to autoscale_none or transform_array. Values outside the interval are preserved when clip is false and clamped when it is true.

    Normalize::autoscale

    fn Normalize::autoscale(self : Normalize, values : Array[Double]) -> Unit raise NormalizeError

    Set both bounds to the finite minimum and maximum in values.

    Normalize::autoscale_none

    fn Normalize::autoscale_none(self : Normalize, values : Array[Double]) -> Unit

    Fill only bounds that are not already set from finite values in values.

    Normalize::clip

    fn Normalize::clip(self : Normalize) -> Bool

    Return whether values outside the bounds are clipped.

    Normalize::inverse

    fn Normalize::inverse(self : Normalize, value : Double) -> Double raise NormalizeError

    Convert one normalized scalar back to data space.

    Normalize::scaled

    fn Normalize::scaled(self : Normalize) -> Bool

    Return whether both bounds are set.

    Normalize::set_clip

    fn Normalize::set_clip(self : Normalize, value : Bool) -> Unit

    Set the clipping mode.

    Normalize::set_vmax

    fn Normalize::set_vmax(self : Normalize, value : Double?) -> Unit raise NormalizeError

    Set the upper data bound.

    Normalize::set_vmin

    fn Normalize::set_vmin(self : Normalize, value : Double?) -> Unit raise NormalizeError

    Set the lower data bound.

    Normalize::transform

    fn Normalize::transform(self : Normalize, value : Double) -> Double raise NormalizeError

    Transform one finite scalar to normalized color space.

    Normalize::transform_array

    fn Normalize::transform_array(self : Normalize, values : Array[Double]) -> Array[Double] raise NormalizeError

    Fill missing bounds from values and transform every value.

    Normalize::vmax

    fn Normalize::vmax(self : Normalize) -> Double?

    Return the upper data bound, if one has been set.

    Normalize::vmin

    fn Normalize::vmin(self : Normalize) -> Double?

    Return the lower data bound, if one has been set.

    PowerNorm

    pub struct PowerNorm {
    vmin : Double?
    vmax : Double?
    clip : Bool
    gamma : Double
    }

    Power-law normalization of non-negative distances from the lower bound.

    PowerNorm::autoscale

    fn PowerNorm::autoscale(self : PowerNorm, values : Array[Double]) -> Unit raise NormalizeError

    Set both bounds to the finite minimum and maximum in values.

    PowerNorm::autoscale_none

    fn PowerNorm::autoscale_none(self : PowerNorm, values : Array[Double]) -> Unit

    Fill only missing power-law bounds from finite values.

    PowerNorm::clip

    fn PowerNorm::clip(self : PowerNorm) -> Bool

    Return whether values outside the bounds are clipped.

    PowerNorm::gamma

    fn PowerNorm::gamma(self : PowerNorm) -> Double

    Return the exponent used by the power-law normalization.

    PowerNorm::inverse

    fn PowerNorm::inverse(self : PowerNorm, value : Double) -> Double raise NormalizeError

    Convert one normalized value back to power-law data space.

    PowerNorm::is_valid

    fn PowerNorm::is_valid(self : PowerNorm, value : Double) -> Bool

    Return whether a value can be represented by this normalization.

    PowerNorm::scaled

    fn PowerNorm::scaled(self : PowerNorm) -> Bool

    Return whether both power-law bounds are set.

    PowerNorm::set_clip

    fn PowerNorm::set_clip(self : PowerNorm, value : Bool) -> Unit

    Set the clipping mode.

    PowerNorm::set_vmax

    fn PowerNorm::set_vmax(self : PowerNorm, value : Double?) -> Unit raise NormalizeError

    Set the upper data bound.

    PowerNorm::set_vmin

    fn PowerNorm::set_vmin(self : PowerNorm, value : Double?) -> Unit raise NormalizeError

    Set the lower data bound.

    PowerNorm::transform

    fn PowerNorm::transform(self : PowerNorm, value : Double) -> Double raise NormalizeError

    Transform one finite scalar with a power-law color scale.

    PowerNorm::transform_array

    fn PowerNorm::transform_array(self : PowerNorm, values : Array[Double]) -> Array[Double] raise NormalizeError

    Fill missing bounds and transform every finite value.

    PowerNorm::vmax

    fn PowerNorm::vmax(self : PowerNorm) -> Double?

    Return the upper data bound, if one has been set.

    PowerNorm::vmin

    fn PowerNorm::vmin(self : PowerNorm) -> Double?

    Return the lower data bound, if one has been set.

    Rgb

    pub struct Rgb {
    red : Double
    green : Double
    blue : Double
    }

    An opaque RGB color with components normalized to the interval [0, 1].

    RGB image inputs are converted to RGBA at the scene boundary with an implicit alpha value of one. Keeping the opaque form separate makes the channel count explicit in typed APIs while retaining one backend color representation.

    Rgb::blue

    fn Rgb::blue(self : Rgb) -> Double

    Rgb::green

    fn Rgb::green(self : Rgb) -> Double

    Rgb::red

    fn Rgb::red(self : Rgb) -> Double

    Rgb::to_rgba

    fn Rgb::to_rgba(self : Rgb) -> Rgba

    Convert an opaque RGB value to the common RGBA backend representation.

    Rgba

    pub struct Rgba {
    red : Double
    green : Double
    blue : Double
    alpha : Double
    }

    An RGBA color with components normalized to the interval [0, 1].

    Rgba::alpha

    fn Rgba::alpha(self : Rgba) -> Double

    Rgba::blue

    fn Rgba::blue(self : Rgba) -> Double

    Rgba::green

    fn Rgba::green(self : Rgba) -> Double

    Rgba::red

    fn Rgba::red(self : Rgba) -> Double

    Rgba::scale_alpha

    fn Rgba::scale_alpha(self : Rgba, factor : Double) -> Rgba raise ColorError

    Scale the opacity of a color by a validated global image alpha.

    The RGB components and the existing per-pixel alpha are preserved while the resulting opacity is multiplied by factor.

    Rgba::to_css

    fn Rgba::to_css(self : Rgba) -> String

    Return an opaque color as #rrggbb, or an rgba() string when translucent.

    SymLogNorm

    pub struct SymLogNorm {
    vmin : Double?
    vmax : Double?
    clip : Bool
    linthresh : Double
    linscale : Double
    base : Double
    }

    Symmetrically logarithmic normalization around zero.

    SymLogNorm::autoscale

    fn SymLogNorm::autoscale(self : SymLogNorm, values : Array[Double]) -> Unit raise NormalizeError

    Set both bounds to the finite minimum and maximum in values.

    SymLogNorm::autoscale_none

    fn SymLogNorm::autoscale_none(self : SymLogNorm, values : Array[Double]) -> Unit

    Fill only missing symmetric-log bounds from finite values.

    SymLogNorm::base

    fn SymLogNorm::base(self : SymLogNorm) -> Double

    Return the logarithm base used by the symmetric-log transform.

    SymLogNorm::clip

    fn SymLogNorm::clip(self : SymLogNorm) -> Bool

    Return whether values outside the bounds are clipped.

    SymLogNorm::inverse

    fn SymLogNorm::inverse(self : SymLogNorm, value : Double) -> Double raise NormalizeError

    Convert one normalized value back to symmetric-log data space.

    SymLogNorm::is_valid

    fn SymLogNorm::is_valid(self : SymLogNorm, value : Double) -> Bool

    Return whether a value can be represented by this normalization.

    SymLogNorm::linscale

    fn SymLogNorm::linscale(self : SymLogNorm) -> Double

    Return the linear-region scale used by the symmetric-log transform.

    SymLogNorm::linthresh

    fn SymLogNorm::linthresh(self : SymLogNorm) -> Double

    Return the linear threshold used by the symmetric-log transform.

    SymLogNorm::scaled

    fn SymLogNorm::scaled(self : SymLogNorm) -> Bool

    Return whether both symmetric-log bounds are set.

    SymLogNorm::set_clip

    fn SymLogNorm::set_clip(self : SymLogNorm, value : Bool) -> Unit

    Set the clipping mode.

    SymLogNorm::set_vmax

    fn SymLogNorm::set_vmax(self : SymLogNorm, value : Double?) -> Unit raise NormalizeError

    Set the upper data bound.

    SymLogNorm::set_vmin

    fn SymLogNorm::set_vmin(self : SymLogNorm, value : Double?) -> Unit raise NormalizeError

    Set the lower data bound.

    SymLogNorm::transform

    fn SymLogNorm::transform(self : SymLogNorm, value : Double) -> Double raise NormalizeError

    Transform one finite scalar to symmetric-log color space.

    SymLogNorm::transform_array

    fn SymLogNorm::transform_array(self : SymLogNorm, values : Array[Double]) -> Array[Double] raise NormalizeError

    Fill missing bounds and transform every finite value.

    SymLogNorm::vmax

    fn SymLogNorm::vmax(self : SymLogNorm) -> Double?

    Return the upper data bound, if one has been set.

    SymLogNorm::vmin

    fn SymLogNorm::vmin(self : SymLogNorm) -> Double?

    Return the lower data bound, if one has been set.

    TwoSlopeNorm

    pub struct TwoSlopeNorm {
    vmin : Double?
    vmax : Double?
    vcenter : Double
    }

    Linear normalization with a distinguished value mapped to 0.5.

    TwoSlopeNorm::autoscale

    fn TwoSlopeNorm::autoscale(self : TwoSlopeNorm, values : Array[Double]) -> Unit raise NormalizeError

    Set both bounds to finite data bounds, including the center when needed.

    TwoSlopeNorm::autoscale_none

    fn TwoSlopeNorm::autoscale_none(self : TwoSlopeNorm, values : Array[Double]) -> Unit

    Fill missing two-slope bounds from finite values and include the center.

    TwoSlopeNorm::inverse

    fn TwoSlopeNorm::inverse(self : TwoSlopeNorm, value : Double) -> Double raise NormalizeError

    Convert one normalized value back to two-slope data space.

    TwoSlopeNorm::is_valid

    fn TwoSlopeNorm::is_valid(self : TwoSlopeNorm, value : Double) -> Bool

    Return whether a value can be represented by this normalization.

    TwoSlopeNorm::scaled

    fn TwoSlopeNorm::scaled(self : TwoSlopeNorm) -> Bool

    Return whether both two-slope bounds are set.

    TwoSlopeNorm::set_vmax

    fn TwoSlopeNorm::set_vmax(self : TwoSlopeNorm, value : Double?) -> Unit raise NormalizeError

    Set the upper data bound while preserving the center ordering.

    TwoSlopeNorm::set_vmin

    fn TwoSlopeNorm::set_vmin(self : TwoSlopeNorm, value : Double?) -> Unit raise NormalizeError

    Set the lower data bound while preserving the center ordering.

    TwoSlopeNorm::transform

    fn TwoSlopeNorm::transform(self : TwoSlopeNorm, value : Double) -> Double raise NormalizeError

    Transform one finite scalar with the center at 0.5.

    TwoSlopeNorm::transform_array

    fn TwoSlopeNorm::transform_array(self : TwoSlopeNorm, values : Array[Double]) -> Array[Double] raise NormalizeError

    Fill missing bounds and transform every finite value.

    TwoSlopeNorm::vcenter

    fn TwoSlopeNorm::vcenter(self : TwoSlopeNorm) -> Double

    Return the center value mapped to 0.5.

    TwoSlopeNorm::vmax

    fn TwoSlopeNorm::vmax(self : TwoSlopeNorm) -> Double?

    Return the upper data bound, if one has been set.

    TwoSlopeNorm::vmin

    fn TwoSlopeNorm::vmin(self : TwoSlopeNorm) -> Double?

    Return the lower data bound, if one has been set.

    boundary_color_norm

    fn boundary_color_norm(value : BoundaryNorm) -> ColorNorm

    Wrap a boundary normalization as a polymorphic color normalization.

    boundary_norm

    fn boundary_norm(boundaries : Array[Double], ncolors : Int, clip? : Bool, extend_mode? : String) -> BoundaryNorm raise NormalizeError

    Construct a discrete boundary normalization. extend_mode maps Matplotlib's extend parameter, avoiding a MoonBit keyword.

    centered_color_norm

    fn centered_color_norm(value : CenteredNorm) -> ColorNorm

    Wrap a centered normalization as a polymorphic color normalization.

    centered_norm

    fn centered_norm(vcenter? : Double, halfrange? : Double, clip? : Bool) -> CenteredNorm raise NormalizeError

    Construct a centered normalization around vcenter.

    colormap

    fn colormap(name : String) -> ColorMap raise ColorError

    Return a named builtin colormap.

    custom_colormap

    fn custom_colormap(name : String, stops : Array[Rgba]) -> ColorMap raise ColorError

    Construct a named colormap from at least one color stop.

    find_colormap

    fn find_colormap(name : String) -> ColorMap?

    Return a named builtin colormap, if it exists.

    linear_color_norm

    fn linear_color_norm(value : Normalize) -> ColorNorm

    Wrap a linear normalization as a polymorphic color normalization.

    listed_colormap

    fn listed_colormap(name : String, colors : Array[Rgba]) -> ColorMap raise ColorError

    Construct a colormap whose entries are selected without interpolation.

    log_color_norm

    fn log_color_norm(value : LogNorm) -> ColorNorm

    Wrap a logarithmic normalization as a polymorphic color normalization.

    log_norm

    fn log_norm(vmin? : Double, vmax? : Double, clip? : Bool, base? : Double) -> LogNorm raise NormalizeError

    Construct a logarithmic normalization with the given logarithm base.

    normalize

    fn normalize(vmin? : Double, vmax? : Double, clip? : Bool) -> Normalize raise NormalizeError

    Construct a linear normalization.

    parse_color

    fn parse_color(value : String) -> Rgba raise ColorError

    Parse a small CSS-compatible color vocabulary and hexadecimal colors.

    power_color_norm

    fn power_color_norm(value : PowerNorm) -> ColorNorm

    Wrap a power-law normalization as a polymorphic color normalization.

    power_norm

    fn power_norm(gamma : Double, vmin? : Double, vmax? : Double, clip? : Bool) -> PowerNorm raise NormalizeError

    Construct a power-law normalization.

    rgb

    fn rgb(red : Double, green : Double, blue : Double) -> Rgb raise ColorError

    Construct an opaque RGB value after validating all components.

    rgba

    fn rgba(red : Double, green : Double, blue : Double, alpha? : Double) -> Rgba raise ColorError

    Construct an RGBA value after validating all components.

    symlog_color_norm

    fn symlog_color_norm(value : SymLogNorm) -> ColorNorm

    Wrap a symmetric-log normalization as a polymorphic color normalization.

    symlog_norm

    fn symlog_norm(linthresh : Double, linscale? : Double, vmin? : Double, vmax? : Double, clip? : Bool, base? : Double) -> SymLogNorm raise NormalizeError

    Construct a symmetric-log normalization around zero.

    linthresh controls the linear region around zero. linscale controls the visual width of that region and base controls the logarithmic decades outside it. Missing bounds are filled by autoscale_none.

    two_slope_color_norm

    fn two_slope_color_norm(value : TwoSlopeNorm) -> ColorNorm

    Wrap a two-slope normalization as a polymorphic color normalization.

    two_slope_norm

    fn two_slope_norm(vcenter : Double, vmin? : Double, vmax? : Double) -> TwoSlopeNorm raise NormalizeError

    Construct a two-slope normalization with vcenter mapped to 0.5.