chaco.examples.demo.basic.tabbed_plots module¶
Tabbed plots with linked (shared) data ranges
Shows how to place plots in separate tabs. Also shows how two plots can dynamically display the same range of data, so that a zoom or pan in one plot will automatically be shown in the other.
In this example, the top panel plots a sin function. The bottom panel contains two tabs, plotting a tan function and a mixed trig function respectively.
The three plots are linked. The sin and mixed plots share both x- and y-axis data ranges. The tan plot shares only its x-axis with the other two.
Mousewheel zooms in or out. Left-mouse-drag pans. Typing “z”, then left-mouse-drag, zooms to a specified region.
If you zoom or pan one plot, you will see changes in one or both axis ranges of the other plots.