fastplotlib.VisibilitySelector#
- class VisibilitySelector(collection, selection=None, lut=None, lut_wrap='fixed')[source]#
Shows a subset of graphics in a GraphicCollection by toggling their visibility.
selection = list()orNone: all invisible.selection = [s1, s2, ..., s_n]: only these indices visibleFor
LineStackandScatterStack, visible graphics are re-stacked along the stack axis when the selection changes.If a
lutis provided, each visible graphic is colored by its position in the selection- Parameters:
collection (GraphicCollection)
lut (str | np.ndarray, optional) – a color, or a stack of RGBA arrays of shape (n, 4)
lut_wrap ("fixed" or "repeat") – How to handle selection indices beyond the end of the lut.