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

« back to all changes in this revision

Viewing changes to enthought/chaco/shell/commands.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:
8
8
 
9
9
from enthought.chaco.api import Plot, color_map_name_dict
10
10
from enthought.chaco.scales.api import ScaleSystem
11
 
from enthought.chaco.tools.api import PanTool, RectZoomTool
 
11
from enthought.chaco.tools.api import PanTool, ZoomTool
12
12
 
13
13
# Note: these are imported to be exposed in the namespace.
14
14
from enthought.chaco.scales.api import (FixedScale, Pow10Scale, LogScale,
281
281
    existing_tools = [type(t) for t in (cont.tools + cont.overlays)]
282
282
    if not PanTool in existing_tools:
283
283
        cont.tools.append(PanTool(cont))
284
 
    if not RectZoomTool in existing_tools:
285
 
        cont.overlays.append(RectZoomTool(cont, drag_button="right"))
 
284
    if not ZoomTool in existing_tools:
 
285
        cont.overlays.append(ZoomTool(cont, tool_mode="box", always_on=True, drag_button="right"))
286
286
 
287
287
    if not session.hold:
288
288
        cont.delplot(*cont.plots.keys())