fastplotlib.LinearSelector#

class LinearSelector(selection, limits, axis='x', parent=None, edge_color='yellow', thickness=1.0, arrow_keys_modifier='Shift', extra_width=14.0, 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

  • 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

  • extra_width (float, default 14.0) – the width around the selector which is responsive to mouse events, in logical pixels

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

Examples#

Sine and Cosine functions

Sine and Cosine functions

Explore Covariance Matrix

Explore Covariance Matrix

Linear Selectors

Linear Selectors

Linear Selectors Image

Linear Selectors Image

Unit circle

Unit circle
Morty Proxy This is a proxified and sanitized view of the page, visit original site.