chaco.examples.demo.basic.zoomable_colorbar module

Scatterplot with zoomable/pannable colormap

Draws a colormapped scatterplot of random data. The colormap is dynamically adjustable.

In addition to normal zooming and panning on the plot, the user can also pan and zoom the colorbar to change the color mapping of the data values.

Left click will pan the colorbar’s data region. Right-drag will select a zoom range. Mousewheel up and down will zoom in and out on the data bounds of the color bar.

class chaco.examples.demo.basic.zoomable_colorbar.Demo

Bases: traits.has_traits.HasTraits

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