chaco.examples.demo.basic.scatter_select module

Lasso selection of data points

Draws a simple scatterplot of random data. Drag the mouse to use the lasso selector, which allows you to circle all the points in a region.

Upon completion of the lasso operation, the indices of the selected points are printed to the console.

Uncomment ‘lasso_selection.incremental_select’ line (line 74) to see the indices of the selected points computed in real time.

class chaco.examples.demo.basic.scatter_select.Demo

Bases: traits.has_traits.HasTraits

chaco.examples.demo.basic.scatter_select.random(size=None)

Return random floats in the half-open interval [0.0, 1.0). Alias for random_sample to ease forward-porting to the new random API.