1
"""Tutorial 9b. Synchronize the Y data space as well,and add some tools."""
4
from chaco.tools.api import ZoomTool
6
from tutorial8 import PlotExample
9
class PlotExample2(PlotExample):
10
def _container_default(self):
11
container = super(PlotExample2, self)._container_default()
13
rplot, lplot = self.right_plot, self.left_plot
14
rplot.index_mapper.range = lplot.index_mapper.range
15
rplot.value_mapper.range = lplot.value_mapper.range
17
lplot.overlays.append(ZoomTool(lplot, tool_mode="box",always_on=False))
18
rplot.overlays.append(ZoomTool(rplot, tool_mode="box",always_on=False))
24
if __name__ == "__main__":
25
demo.configure_traits()