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

« back to all changes in this revision

Viewing changes to examples/new_tutorial/tut2.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:
22
22
        plot1.plot(("x", "y1"), type="line", color="red")
23
23
        plot1.plot(("x", "y2"), type="scatter", color="blue")
24
24
        plot1.tools.append(PanTool(plot1))
25
 
        plot1.overlays.append(SimpleZoom(plot1))
 
25
        plot1.overlays.append(ZoomTool(plot1))
26
26
 
27
27
        plot2 = Plot(pd)
28
28
        plot2.plot(("x", "y3"), type="scatter", color="purple")
29
29
        plot2.tools.append(PanTool(plot2))
30
 
        plot2.overlays.append(SimpleZoom(plot2))
 
30
        plot2.overlays.append(ZoomTool(plot2))
31
31
 
32
32
        c = HPlotContainer()
33
33
        c.add(plot1, plot2)