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

« back to all changes in this revision

Viewing changes to examples/updating_plot/updating_plot3.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:
17
17
 
18
18
# Chaco imports
19
19
from enthought.chaco.api import *
20
 
from enthought.chaco.tools.api import MoveTool, PanTool, SimpleZoom
 
20
from enthought.chaco.tools.api import MoveTool, PanTool, ZoomTool
21
21
 
22
22
 
23
23
COLOR_PALETTE = ("mediumslateblue", "maroon", "darkgreen", "goldenrod",
43
43
 
44
44
        plot.tools.append(PanTool(plot, drag_button="right"))
45
45
        plot.tools.append(MoveTool(plot))
46
 
        plot.overlays.append(SimpleZoom(plot, tool_mode="box", always_on=False))
 
46
        plot.overlays.append(ZoomTool(plot, tool_mode="box", always_on=False))
47
47
 
48
48
        self.plot = plot
49
49
        self.numpoints = len(self.x_values)