14
14
# Major library imports
15
from numpy import arange, fabs, pi, sin
15
from numpy import arange
16
16
from scipy.special import jn
18
18
from enthought.chaco.example_support import COLOR_PALETTE
21
21
# Enthought library imports
22
22
from enthought.enable.api import Window, Component, ComponentEditor
23
from enthought.traits.api import HasTraits, Instance, Dict, false, List
23
from enthought.traits.api import HasTraits, Instance
24
24
from enthought.traits.ui.api import Item, Group, View
27
from enthought.chaco.api import create_line_plot, add_default_axes, add_default_grids, \
28
OverlayPlotContainer, PlotLabel, VPlotContainer, \
29
create_scatter_plot, Legend, PlotComponent, PlotAxis
30
from enthought.chaco.tools.api import PanTool, RectZoomTool, SimpleZoom, \
31
LegendTool, TraitsTool, BroadcasterTool
27
from enthought.chaco.api import create_line_plot, add_default_axes, \
28
add_default_grids, OverlayPlotContainer, \
29
PlotLabel, Legend, PlotAxis
30
from enthought.chaco.tools.api import PanTool, LegendTool, TraitsTool, \
33
33
#===============================================================================
34
34
# # Create the Chaco plot.
62
61
# manipulate, but don't attach it to the plot. Instead, attach it to
64
63
pan = PanTool(plot)
65
#zoom = SimpleZoom(plot, tool_mode="box", always_on=False)
66
64
broadcaster.tools.append(pan)
67
#broadcaster.tools.append(zoom)
69
66
container.add(plot)
70
67
plots["Bessel j_%d"%i] = plot