fastplotlib.graphics._features.LinearSelectionFeature

class LinearSelectionFeature(parent, axis, value, limits)[source]

Manages the linear selection and callbacks

event pick info

key

type

selection

“selected_index”

int

the graphic data index that corresponds to the selector position

“world_object”

pygfx.WorldObject

pygfx WorldObject

“new_data”

numpy.ndarray or None

the new selector position in world coordinates, not necessarily the same as “selected_index”

“graphic”

Graphic

the selector graphic

“delta”

numpy.ndarray

the delta vector of the graphic in NDC

“pygfx_event”

pygfx.Event

pygfx Event