Sign in

    Lampese/mathplotlib/ticker/scale does not have a README file

    Scale

    pub(all) enum Scale {
    Linear
    Log
    SymLog(linthresh~ : Double, linscale~ : Double, base~ : Double)
    Asinh(linear_width~ : Double)
    Logit(clip~ : Bool)
    }

    Coordinate scale used by an axis.

    Scale::asinh_linear_width

    fn Scale::asinh_linear_width(self : Scale) -> Double?

    Return the Asinh coordinate width, if configured.

    Scale::format_tick

    fn Scale::format_tick(self : Scale, value : Double) -> String

    Format one scale tick using a stable decimal representation.

    Scale::inverse

    fn Scale::inverse(self : Scale, value : Double) -> Double

    Convert display-space scale coordinates back to data values.

    Scale::is_asinh

    fn Scale::is_asinh(self : Scale) -> Bool

    Whether this scale uses inverse-hyperbolic-sine coordinates.

    Scale::is_log

    fn Scale::is_log(self : Scale) -> Bool

    Whether this scale uses base-ten logarithmic coordinates.

    Scale::is_logit

    fn Scale::is_logit(self : Scale) -> Bool

    Whether this scale uses log-odds probability coordinates.

    Scale::is_nonlinear

    fn Scale::is_nonlinear(self : Scale) -> Bool

    Whether this scale applies a non-linear coordinate transform.

    Scale::is_symlog

    fn Scale::is_symlog(self : Scale) -> Bool

    Whether this scale is symmetric logarithmic.

    Scale::is_valid

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

    Check whether a data value can be represented on this scale.

    Scale::limit_range_for_scale

    fn Scale::limit_range_for_scale(self : Scale, lower : Double, upper : Double, minpos : Double) -> (Double, Double)

    Apply the scale's source domain restriction using raw minimum-positive data. Finite minpos is preserved, including values outside the usual data domain.

    Scale::logit_nonpositive

    fn Scale::logit_nonpositive(self : Scale) -> String?

    Return the Logit nonpositive mode, if configured.

    Scale::symlog_base

    fn Scale::symlog_base(self : Scale) -> Double?

    Return the symmetric-log base, if configured.

    Scale::symlog_linthresh

    fn Scale::symlog_linthresh(self : Scale) -> Double?

    Return the symmetric-log linear threshold, if configured.

    Scale::tick_values

    fn Scale::tick_values(self : Scale, limits :
    Limits
    , count? : Int) -> Array[Double]

    Generate deterministic convenience ticks for this scale. Asinh and Logit use display-uniform samplers; explicitly install a named locator for the corresponding source locator's rounding and count policy.

    Scale::transform

    fn Scale::transform(self : Scale, value : Double) -> Double

    Transform one data value into display-space scale coordinates.

    asinh_scale

    fn asinh_scale(linear_width? : Double) -> Scale raise
    DataError

    Construct inverse-hyperbolic-sine coordinate geometry. Source width validation rejects nonpositive values; NaN and positive infinity remain representable. Tick defaults require an explicit locator.

    linear_scale

    fn linear_scale() -> Scale

    Return the ordinary linear scale.

    log_scale

    fn log_scale() -> Scale

    Return a base-ten logarithmic scale.

    logit_scale

    fn logit_scale(nonpositive? : String) -> Scale raise
    DataError

    Construct base-ten probability geometry. Tick defaults require an explicit locator; the clip mode does not change the strict valid-data domain.

    symlog_scale

    fn symlog_scale(linthresh? : Double, linscale? : Double, base? : Double) -> Scale raise
    DataError

    Construct a symmetric logarithmic scale around zero.

    Source Files