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

« back to all changes in this revision

Viewing changes to examples/updating_plot/updating_plot2.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:
21
21
 
22
22
# Chaco imports
23
23
from enthought.chaco.api import *
24
 
from enthought.chaco.tools.api import MoveTool, PanTool, SimpleZoom
 
24
from enthought.chaco.tools.api import MoveTool, PanTool, ZoomTool
25
25
 
26
26
COLOR_PALETTE = ("mediumslateblue", "maroon", "darkgreen", "goldenrod",
27
27
                 "purple", "indianred")
41
41
 
42
42
        plot.tools.append(PanTool(plot, drag_button="right"))
43
43
        plot.tools.append(MoveTool(plot))
44
 
        plot.overlays.append(SimpleZoom(plot, tool_mode="box", always_on=False))
 
44
        plot.overlays.append(ZoomTool(plot, tool_mode="box", always_on=False))
45
45
 
46
46
        plot.unified_draw = True
47
47
        self.plot = plot