add_linear_region_selector#
- LineStack.add_linear_region_selector(selection=None, padding=0.0, axis='x', **kwargs)#
Add a
LinearRegionSelector
. Selectors are justGraphic
objects, so you can manage, remove, or delete them from a plot area just like any otherGraphic
.- Parameters:
selection ((float, float), optional) – the starting bounds of the linear region selector, computed from data if not provided
axis (str, default "x") – axis that the selector resides on
padding (float, default 0.0) – Extra padding to extend the linear region selector along the orthogonal axis to make it easier to interact with.
kwargs – passed to
LinearRegionSelector
- Returns:
linear selection graphic
- Return type:
Examples#
LinearRegionSelectors with LineCollection
LinearRegionSelectors with LineCollection