fastplotlib.graphics._features.LinearSelectionFeature#

class LinearSelectionFeature(axis, value, limits)[source]#

additional event attributes:

attribute

type

description

get_selected_index

callable

returns indices under the selector

info dict:

dict key

value type

value description

value

np.ndarray

new x or y value of selection

Parameters:
  • axis ("x" | "y") – axis the selector is restricted to

  • value (float) – position of the slider in world space, NOT data space

  • limits ((float, float)) – min, max limits of the selector