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

« back to all changes in this revision

Viewing changes to examples/financial_plot_dates.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:
25
25
 
26
26
from enthought.chaco.scales.api import CalendarScaleSystem
27
27
from enthought.chaco.scales_tick_generator import ScalesTickGenerator
28
 
from enthought.chaco.scales_axis import PlotAxis as ScalesPlotAxis
29
28
 
30
29
 
31
30
def create_dates(numpoints, units="days"):
77
76
    price_plot.overlays.append(PlotAxis(price_plot, orientation='left')), 
78
77
 
79
78
    # Set the plot's bottom axis to use the Scales ticking system
80
 
    bottom_axis = ScalesPlotAxis(price_plot, orientation="bottom",# mapper=xmapper,
 
79
    bottom_axis = PlotAxis(price_plot, orientation="bottom",# mapper=xmapper,
81
80
                    tick_generator=ScalesTickGenerator(scale=CalendarScaleSystem()))
82
81
    price_plot.overlays.append(bottom_axis)
83
82
    hgrid, vgrid = add_default_grids(price_plot)