PositionsHighlightSelector#

PositionsHighlightSelector#

Constructor#

PositionsHighlightSelector([color, lut, ...])

Highlights individual data points on a LineGraphic or ScatterGraphic.

Properties#

PositionsHighlightSelector.alpha

Get or set alpha value, 0 - 1.0

PositionsHighlightSelector.color

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

PositionsHighlightSelector.graphics

Get graphics the highlight selector is operating on.

PositionsHighlightSelector.lut

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

PositionsHighlightSelector.lut_wrap

Get or set LUT wrap mode.

PositionsHighlightSelector.selection

Get or set selected vertex indices.

Methods#

PositionsHighlightSelector.add_event_handler(handler)

Add a callback that is called when the selection changes.

PositionsHighlightSelector.add_graphic(graphic)

Add graphic and apply the current highlight selection to it.

PositionsHighlightSelector.append(item)

Append one or more vertex indices to the selection.

PositionsHighlightSelector.clear()

Remove all highlights.

PositionsHighlightSelector.remove(item)

Remove one or more vertex indices from the selection.

PositionsHighlightSelector.remove_event_handler(handler)

Remove an event handler.

PositionsHighlightSelector.remove_graphic(graphic)

remove graphic and clear its highlight buffer.