add_polygon_selector#

ScatterCollection.add_polygon_selector(selection=None, **kwargs)#

Add a PolygonSelector.

Parameters:
  • selection (list of (float, float), optional) – initial polygon points; if not given, you draw the polygon by clicking

  • **kwargs – passed to PolygonSelector

Return type:

PolygonSelector