CollectionHighlightSelector#

CollectionHighlightSelector#

Constructor#

CollectionHighlightSelector([color, lut, alpha])

Highlights entire graphics within a LineCollection or ScatterCollection.

Properties#

CollectionHighlightSelector.alpha

Get or set alpha value, 0 - 1.0

CollectionHighlightSelector.color

Get or set color applied to all selected items, used if lut is None.

CollectionHighlightSelector.graphics

Get graphics the highlight selector is operating on.

CollectionHighlightSelector.lut

Get or set per-item color lookup table, shape (n, 4) float32 RGBA, or a str that defines a colormap.

CollectionHighlightSelector.lut_wrap

Get or set LUT wrap mode.

CollectionHighlightSelector.selection

Selected collection indices.

Methods#

CollectionHighlightSelector.add_event_handler(handler)

Add a callback that is called when the selection changes.

CollectionHighlightSelector.add_graphic(graphic)

Add graphic and apply the current highlight selection to it.

CollectionHighlightSelector.append(item)

Append one or more collection indices to the selection.

CollectionHighlightSelector.clear()

Remove all highlights.

CollectionHighlightSelector.remove(item)

Remove one or more collection indices from the selection.

CollectionHighlightSelector.remove_event_handler(handler)

Remove an event handler.

CollectionHighlightSelector.remove_graphic(graphic)

remove graphic and clear its highlight buffer.