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 other Graphic.

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:

LinearSelector

Examples#

Sine and Cosine functions

Sine and Cosine functions

Linear Selectors

Linear Selectors

Unit circle

Unit circle