scales#

class CategoricalScale(*args: Any, id: ID | None = None, **kwargs: Any)[source]#

Represent a scale transformation between a categorical source range and continuous target range.

class CompositeScale(*args: Any, id: ID | None = None, **kwargs: Any)[source]#

Represent a composition of two scales, which useful for defining sub-coordinate systems.

source_scale#

The source scale.

target_scale#

The target scale.

class LinearScale(*args: Any, id: ID | None = None, **kwargs: Any)[source]#

Represent a linear scale transformation between continuous ranges.

class LogScale(*args: Any, id: ID | None = None, **kwargs: Any)[source]#

Represent a log scale transformation between continuous ranges.

class Scale(*args: Any, id: ID | None = None, **kwargs: Any)[source]#
Base class for Scale models that represent an invertible

computation to be carried out on the client-side.

JavaScript implementations should implement the following methods:

compute(x: number): number {
    // compute and return the transform of a single value
}

v_compute(xs: Arrayable<number>): Arrayable<number> {
    // compute and return the transform of an array of values
}

invert(sx: number): number {
    // compute and return the inverse transform of a single value
}

v_invert(sxs: Arrayable<number>): Arrayable<number> {
    // compute and return the inverse transform of an array of values
}

Note

This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.