chaco.examples.demo.financial.stock_prices module

Implementation of a standard financial plot visualization using Chaco renderers and scales.

In the main price plot area, mouse wheel zooms and mouse drag pans (if the plot is not at the edge of the time series data). In the bottom overview plot area, right-click-drag selects a range of times to display on the top two plots. Once a region is selected, it can be moved around by left-dragging or resized by left-dragging one of its edges.

class chaco.examples.demo.financial.stock_prices.Demo

Bases: enable.examples._example_support.DemoFrame

chaco.examples.demo.financial.stock_prices.create_dates(numpoints, units='days')

Returns numpoints number of dates that evenly bracket the current date and time. units should be one of “weeks”, “days”, “hours” “minutes”, or “seconds”.