add_rectangle_selector#

LineCollection.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

Examples#

Rectangle Selectors

Rectangle Selectors