get_selected_index#
- LinearSelector.get_selected_index(graphic=None)[source]#
Data index the selector is currently at w.r.t. the Graphic data.
With LineGraphic data, the geometry x or y position is not always the data position, for example if plotting data using np.linspace. Use this to get the data index of the selector.
Examples#
Linear Selectors