chaco.examples.demo.basic.regression module

Regression Selection tool

Hold down the left mouse button to use the mouse to draw a selection region around some points, and a line fit is drawn through the center of the points. The parameters of the line are displayed at the bottom of the plot region. You can do this repeatedly to draw different regions.

Hold the right mouse button down and drag to pan.

Use the mousewheel to zoom in and out.

class chaco.examples.demo.basic.regression.Demo

Bases: traits.has_traits.HasTraits

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