holoviews.core.accessors module#

Module for accessor objects for viewable HoloViews objects.

class holoviews.core.accessors.Apply(obj, mode=None)[source]#

Bases: object

Utility to apply a function or operation to all viewable elements inside the object.

aggregate(dimensions=None, function=None, spreadfn=None, **kwargs)[source]#

Applies a aggregate function to all ViewableElements.

See Also#

Dimensioned.aggregate() and Apply.__call__() for more information.

opts(*args, **kwargs)[source]#

Applies options to all ViewableElement objects.

See Also#

Dimensioned.opts() and Apply.__call__() for more information.

reduce(dimensions=None, function=None, spreadfn=None, **kwargs)[source]#

Applies a reduce function to all ViewableElement objects.

See Also#

Dimensioned.opts() and Apply.__call__() for more information.

sample(samples=None, bounds=None, **kwargs)[source]#

Samples element values at supplied coordinates.

See Also#

Dataset.sample() and Apply.__call__() for more information.

select(**kwargs)[source]#

Applies a selection to all ViewableElement objects.

See Also#

Dimensioned.opts() and Apply.__call__() for more information.

transform(*args, **kwargs)[source]#

Applies transforms to all Datasets.

See Also#

Dataset.transform() and Apply.__call__() for more information.

class holoviews.core.accessors.Redim(obj, mode=None)[source]#

Bases: object

Utility that supports re-dimensioning any HoloViews object via the redim method.

classmethod replace_dimensions(dimensions, overrides)[source]#

Replaces dimensions in list with dictionary of overrides.

Parameters#

dimensionslist

List of dimensions

overridesdict

Dictionary of dimension specs indexed by name

Returns#

list

List of dimensions with replacements applied