chaco.examples.demo.scales_test module

Draws several overlapping line plots.

Left-drag pans the plot.

Mousewheel 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 control-y and control-z (Meta-y and Meta-z on Mac) moves you forwards and backwards through the “zoom history”.

Right-click and dragging on the legend allows you to reposition the legend.

Double-clicking on line or scatter plots brings up a traits editor for the plot.

class chaco.examples.demo.scales_test.Demo

Bases: traits.has_traits.HasTraits

chaco.examples.demo.scales_test.add_default_axes(plot, orientation='normal', vtitle='', htitle='')

Creates left and bottom axes for a plot. Assumes that the index is horizontal and value is vertical by default; set orientation to something other than “normal” if they are flipped.

chaco.examples.demo.scales_test.add_default_grids(plot, orientation='normal', tick_gen=None)

Creates horizontal and vertical gridlines for a plot. Assumes that the index is horizontal and value is vertical by default; set orientation to something other than “normal” if they are flipped.