get_selected_indices#
- LinearRegionSelector.get_selected_indices(graphic=None)[source]#
Returns the indices of the
Graphic
data bounded by the current selection.These are the data indices along the selector’s “axis” which correspond to the data under the selector.
- Parameters:
graphic (Graphic, optional) – if provided, returns the selection indices from this graphic instead of the graphic set as
parent
- Returns:
data indices of the selection, list of np.ndarray if graphic is a collection
- Return type:
Union[np.ndarray, List[np.ndarray]]