add_polygon_selector#
- ImageGraphic.add_polygon_selector(selection=None, fill_color=(0, 0, 0.35, 0.2), **kwargs)[source]#
Add a
PolygonSelector
.Selectors are just
Graphic
objects, so you can manage, remove, or delete them from a plot area just like any otherGraphic
.- Parameters:
selection (List of positions, optional) – Initial points for the polygon. If not given or None, you’ll start drawing the selection (clicking adds points to the polygon).
- Return type:
PolygonSelector