add_rectangle_selector#

LineGraphic.add_rectangle_selector(selection=None, **kwargs)[source]#

Add a RectangleSelector. 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, float, float), optional) – initial (xmin, xmax, ymin, ymax) of the selection

Return type:

RectangleSelector