chaco.examples.demo.basic.scatter module¶
Scatter plot with panning and zooming
Shows a scatter plot of a set of random points, with basic Chaco panning and zooming.
Interacting with the plot:
Left-mouse-drag pans the plot.
Mouse wheel up and down zooms the plot in and out.
Pressing “z” brings up the Zoom Box, and you can click-drag a rectangular region to zoom. If you use a sequence of zoom boxes, pressing alt-left-arrow and alt-right-arrow moves you forwards and backwards through the “zoom history”.
-
class
chaco.examples.demo.basic.scatter.
Demo
¶ Bases:
traits.has_traits.HasTraits
-
chaco.examples.demo.basic.scatter.
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.