Show how to use a lasso to select a set of points and get the indices of the selected points. A callback is used to change the color of the selected points This is currently a proof-of-concept implementation (though it is usable as is). There will be some refinement of the API and the inside polygon detection routine.
|tuple||ax = fig.add_subplot(111, xlim=(0,1), ylim=(0,1), autoscale_on=False)|
|list||data = [Datum(*xy) for xy in rand(100, 2)]|
|tuple||fig = figure()|
|tuple||lman = LassoManager(ax, data)|