fastplotlib.LinearSelector#

class LinearSelector(selection, limits, size, center, axis='x', parent=None, edge_color='w', thickness=2.5, arrow_keys_modifier='Shift', name=None)[source]#

Create a horizontal or vertical line that can be used to select a value along an axis.

Parameters:
  • selection (int) – initial x or y selected position for the selector, in data space

  • limits ((int, int)) – (min, max) limits along the x or y-axis for the selector, in data space

  • size (float) – size of the selector, usually the range of the data

  • center (float) – center offset of the selector on the orthogonal axis, usually the data mean

  • axis (str, default "x") – “x” | “y”, the axis along which the selector can move

  • parent (Graphic) – parent graphic for this LinearSelector

  • arrow_keys_modifier (str) – modifier key that must be pressed to initiate movement using arrow keys, must be one of: “Control”, “Shift”, “Alt” or None. Double-click the selector first to enable the arrow key movements, or set the attribute arrow_key_events_enabled = True

  • thickness (float, default 2.5) – thickness of the selector

  • edge_color (str | tuple | np.ndarray, default "w") – color of the selector

  • name (str, optional) – name of linear selector

Examples#

Linear Selectors Image

Linear Selectors Image

Linear Selectors

Linear Selectors

Explore Covariance Matrix

Explore Covariance Matrix