add_linear_region_selector#

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

Add a LinearRegionSelector.

Parameters:
  • selection ((float, float), optional) – initial bounds of the region 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 spans

  • **kwargs – passed to LinearRegionSelector

Return type:

LinearRegionSelector