add_linear_selector#

ScatterCollection.add_linear_selector(selection=None, padding=0.0, axis='x', **kwargs)#

Add a LinearSelector.

Parameters:
  • selection (float, optional) – initial position of the selector along axis, computed from the data if not given

  • padding (float, default 0.0) – extra padding along the orthogonal axis to make the selector easier to grab

  • axis (str, default "x") – axis the selector moves along

  • **kwargs – passed to LinearSelector

Return type:

LinearSelector