chaco.examples.demo.basic.cmap_scatter module

Scatterplot with range-selectable data points

Draws a colormapped scatterplot of random data.

In addition to normal zooming and panning on the plot, the user can select a range of data values by right-dragging in the color bar.

Left-click in the color bar to cancel the range selection.

class chaco.examples.demo.basic.cmap_scatter.Demo

Bases: traits.has_traits.HasTraits

chaco.examples.demo.basic.cmap_scatter.create_colorbar(colormap)
chaco.examples.demo.basic.cmap_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.