chaco.examples.demo.basic.scrollbar module

Plot with scroll and pan-zoom interaction.

Draws some x-y line and scatter plots. On the plot:
  • Scroll by dragging the scrollbar above the plot

  • 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 alt-left-arrow and alt-right-arrow moves you forwards and backwards through the “zoom history”.

class chaco.examples.demo.basic.scrollbar.Demo

Bases: traits.has_traits.HasTraits