~ubuntu-branches/ubuntu/utopic/python-chaco/utopic

« back to all changes in this revision

Viewing changes to examples/financial/ohlc.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-06 19:03:54 UTC
  • mfrom: (7.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110406190354-rwd55l2ezjecfo41
Tags: 3.4.0-2
d/rules: fix pyshared directory path (Closes: #621116)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from enthought.chaco.tools.api import PanTool, ZoomTool
19
19
from enthought.chaco.scales.api import CalendarScaleSystem
20
20
from enthought.chaco.scales_tick_generator import ScalesTickGenerator
21
 
from enthought.chaco.scales_axis import PlotAxis as ScalesPlotAxis
22
21
 
23
22
try:
24
23
    from enthought.chaco.hloc_renderer import OHLCPlot, PriceDataSource, \
86
85
 
87
86
        # Set the plot's bottom axis to use the Scales ticking system
88
87
        ticker = ScalesTickGenerator(scale=CalendarScaleSystem())
89
 
        bottom_axis = ScalesPlotAxis(price_plot, orientation="bottom", 
90
 
                                     tick_generator = ticker)
 
88
        bottom_axis = PlotAxis(price_plot, orientation="bottom", 
 
89
                               tick_generator = ticker)
91
90
        price_plot.overlays.append(bottom_axis)
92
91
        price_plot.overlays.append(PlotAxis(price_plot, orientation="left"))
93
92
        hgrid, vgrid = add_default_grids(price_plot)