selection Module

selection Module

class holoviews.selection.ColorListSelectionDisplay(color_prop='color', alpha_prop='alpha', backend=None)[source]

Bases: holoviews.selection.SelectionDisplay

Selection display class for elements that support coloring by a vectorized color list.

class holoviews.selection.NoOpSelectionDisplay[source]

Bases: holoviews.selection.SelectionDisplay

Selection display class that returns input element unchanged. For use with elements that don’t support displaying selections.

class holoviews.selection.OverlaySelectionDisplay(color_prop='color', is_cmap=False, supports_region=True)[source]

Bases: holoviews.selection.SelectionDisplay

Selection display base class that represents selections by overlaying colored subsets on top of the original element in an Overlay container.

class holoviews.selection.SelectionDisplay[source]

Bases: object

Base class for selection display classes. Selection display classes are responsible for transforming an element (or DynamicMap that produces an element) into a HoloViews object that represents the current selection state.

Bases: holoviews.selection._base_link_selections

Operation which automatically links selections between elements in the supplied HoloViews object. Can be used a single time or be used as an instance to apply the linked selections across multiple objects.

cross_filter_mode = param.Selector(default=’intersect’, objects=[‘overwrite’, ‘intersect’])

Determines how to combine selections across different elements.

index_cols = param.List(bounds=(0, None))

If provided, selection switches to index mode where all queries are expressed solely in terms of discrete values along the index_cols. All Elements given to link_selections must define the index_cols, either as explicit dimensions or by sharing an underlying Dataset that defines them.

selection_expr = param.Parameter()

dim expression of the current selection or None to indicate that everything is selected.

selected_color = param.Color()

Color of selected data, or None to use the original color of each element.

selection_mode = param.Selector(default=’overwrite’, objects=[‘overwrite’, ‘intersect’, ‘union’, ‘inverse’])

Determines how to combine successive selections on the same element.

show_regions = param.Boolean(bounds=(0, 1), default=True)

Whether to highlight the selected regions.

unselected_alpha = param.Magnitude(bounds=(0.0, 1.0), default=0.1, inclusive_bounds=(True, True), time_dependent=False, time_fn=Time(label=’Time’, name=’Time00001’, time_type=<class ‘int’>, timestep=1.0, unit=None, until=Infinity()))

Alpha of unselected data.

unselected_color = param.Color()

Color of unselected data.

Inspect .param.debug method for the full docstring

Inspect .param.defaults method for the full docstring

Inspect .param.message method for the full docstring

Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y

Inspect .param.print_param_defaults method for the full docstring

Inspect .param.print_param_values method for the full docstring

Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y

The datashader colormap for selected data

Inspect .param.set_default method for the full docstring

Restore the most recently saved state.

See state_push() for more details.

Save this instance’s state.

For Parameterized instances, this includes the state of dynamically generated values.

Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().

Generally, this method is used by operations that need to test something without permanently altering the objects’ state.

The datashader colormap for unselected data

Inspect .param.verbose method for the full docstring

Inspect .param.warning method for the full docstring