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

« back to all changes in this revision

Viewing changes to examples/advanced/data_cube.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:
23
23
from enthought.chaco.api import ArrayPlotData, Plot, GridPlotContainer, \
24
24
                                 BaseTool, DataRange1D
25
25
from enthought.chaco.default_colormaps import *
26
 
from enthought.chaco.tools.api import LineInspector, SimpleZoom
 
26
from enthought.chaco.tools.api import LineInspector, ZoomTool
27
27
from enthought.enable.example_support import DemoFrame, demo_main
28
28
from enthought.enable.api import Window
29
29
from enthought.traits.api import Any, Array, Bool, Callable, CFloat, CInt, \
280
280
        return Window(self, -1, component=container)
281
281
    
282
282
    def _add_plot_tools(self, imgplot, token):
283
 
        """ Add LineInspectors, ImageIndexTool, and SimpleZoom to the image plots. """
 
283
        """ Add LineInspectors, ImageIndexTool, and ZoomTool to the image plots. """
284
284
        
285
 
        imgplot.overlays.append(SimpleZoom(component=imgplot, tool_mode="box",
 
285
        imgplot.overlays.append(ZoomTool(component=imgplot, tool_mode="box",
286
286
                                           enable_wheel=False, always_on=False))
287
287
        imgplot.overlays.append(LineInspector(imgplot, axis="index_y", color="white",
288
288
            inspect_mode="indexed", write_metadata=True, is_listener=True))