chaco.examples.demo.basic.scatter_toggle module

Scatter plot with point selection

Draws a simple scatter plot of random data. The user can click on points to select or unselect them.

  • Left-click on a point to select or unselect it.

  • Left-drag to pan.

  • Mouse wheel to zoom

class chaco.examples.demo.basic.scatter_toggle.Demo

Bases: traits.has_traits.HasTraits

chaco.examples.demo.basic.scatter_toggle.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.