add_linear_region_selector¶

LineGraphic.add_linear_region_selector(padding=100.0, **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:
  • padding (float, default 100.0) – Extends the linear selector along the y-axis to make it easier to interact with.

  • kwargs – passed to LinearRegionSelector

Returns:

linear selection graphic

Return type:

LinearRegionSelector