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

« back to all changes in this revision

Viewing changes to examples/financial/correlations.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:
9
9
from enthought.traits.ui.api import Item, View, HSplit, VGroup, EnumEditor
10
10
 
11
11
# Chaco imports
12
 
from enthought.chaco.api import ArrayPlotData, Plot, ScatterInspectorOverlay
 
12
from enthought.chaco.api import ArrayPlotData, Plot, PlotAxis, \
 
13
        ScatterInspectorOverlay
13
14
from enthought.chaco.scales.api import CalendarScaleSystem
14
15
from enthought.chaco.scales_tick_generator import ScalesTickGenerator
15
 
from enthought.chaco.scales_axis import PlotAxis as ScalesPlotAxis
16
16
from enthought.chaco.example_support import COLOR_PALETTE
17
17
from enthought.chaco.tools.api import PanTool, ZoomTool, RangeSelection, \
18
18
        RangeSelectionOverlay, LegendTool
80
80
        #FIXME: The legend move tool doesn't seem to quite work right now
81
81
        #plot.legend.tools.append(LegendTool(plot.legend))
82
82
        plot.x_axis = None
83
 
        x_axis = ScalesPlotAxis(plot, orientation="bottom",
 
83
        x_axis = PlotAxis(plot, orientation="bottom",
84
84
                        tick_generator=ScalesTickGenerator(scale=CalendarScaleSystem()))
85
85
        plot.overlays.append(x_axis)
86
86
        plot.x_grid.tick_generator = x_axis.tick_generator