add_linear_selector#
- LineGraphic.add_linear_selector(selection=None, axis='x', **kwargs)[source]#
Adds a
LinearSelector
.Selectors are just
Graphic
objects, so you can manage, remove, or delete them from a plot area just like any otherGraphic
.- Parameters:
selection (float, optional) – selected point on the linear selector, by default the first datapoint on the line.
axis (str, default "x") – axis that the selector resides on
kwargs – passed to
LinearSelector
- Return type: