add_linear_region_selector#

LineGraphic.add_linear_region_selector(selection=None, padding=0.0, axis='x', **kwargs)[source]#

Add a LinearRegionSelector. Selectors are just Graphic objects, so you can manage, remove, or delete them from a plot area just like any other Graphic.

Parameters:
  • selection ((float, float), optional) – the starting bounds of the linear region selector, computed from data if not provided

  • axis (str, default "x") – axis that the selector resides on

  • padding (float, default 0.0) – Extra padding to extend the linear region selector along the orthogonal axis to make it easier to interact with.

  • kwargs – passed to LinearRegionSelector

Returns:

linear selection graphic

Return type:

LinearRegionSelector

Examples#

LinearRegionSelectors

LinearRegionSelectors