add_rectangle_selector#

ImageGraphic.add_rectangle_selector(selection=None, fill_color=(0, 0, 0.35, 0.2), **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 Images

Rectangle Selectors Images