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

« back to all changes in this revision

Viewing changes to examples/updating_plot/updating_plot4.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:
20
20
 
21
21
# Chaco imports
22
22
from enthought.chaco.api import *
23
 
from enthought.chaco.tools.api import MoveTool, PanTool, SimpleZoom
 
23
from enthought.chaco.tools.api import MoveTool, PanTool, ZoomTool
24
24
 
25
25
 
26
26
COLOR_PALETTE = ("mediumslateblue", "maroon", "darkgreen", "goldenrod",
48
48
 
49
49
        plot.tools.append(PanTool(plot, drag_button="right"))
50
50
        plot.tools.append(MoveTool(plot))
51
 
        plot.overlays.append(SimpleZoom(plot, tool_mode="box", always_on=False))
 
51
        plot.overlays.append(ZoomTool(plot, tool_mode="box", always_on=False))
52
52
 
53
53
        self.plot = plot
54
54
        self.numpoints = len(self.x_values)