add_linear_region_selector#

ImageGraphic.add_linear_region_selector(selection=None, axis='x', padding=0.0, fill_color=(0, 0, 0.35, 0.2), **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)) – initial (min, max) of the selection

  • axis ("x" | "y") – axis the selector can move along

  • padding (float, default 100.0) – Extends the linear selector along the perpendicular axis to make it easier to interact with.

  • kwargs – passed to LinearRegionSelector

Returns:

linear selection graphic

Return type:

LinearRegionSelector