The Matplotlib's Lasso Selector widget lets you to make a s selection curve of an arbitrary shape.

In this tutorial we will take an example of how to use the Lasso Selector Selector widget.

Python Script