Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

lasso_demo Namespace Reference


Detailed Description

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.


Classes

class  Datum
class  LassoManager

Variables

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)


Generated by  Doxygen 1.6.0   Back to index