add_polygon_selector#
- LineCollection.add_polygon_selector(selection=None, **kwargs)[source]#
Add a
PolygonSelector. Selectors are justGraphicobjects, 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