1
"""Tutorial 4. Adding a zoom tool
3
The ZoomTool tool has a visual component, so it needs to be added to the
4
list of overlays instead of the list of bare tools.
7
from chaco.tools.api import ZoomTool
9
from tutorial2 import demo
12
plot.overlays.append(ZoomTool(plot, tool_mode="box", always_on=True))
14
if __name__ == "__main__":
15
demo.configure_traits()