chaco.examples.demo.basic.scatter_custom_marker module

Scatter plot with custom markers

Chaco supports a wide range of custom markers.

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_custom_marker.Demo

Bases: traits.has_traits.HasTraits

chaco.examples.demo.basic.scatter_custom_marker.make_custom_marker()
chaco.examples.demo.basic.scatter_custom_marker.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.