1
"""Tutorial 2. Creating a plot in window.
3
Using a traitsui view, a plot can be placed as a configurable item that is
4
viewed when configure_traits is called.
7
from enable.api import ComponentEditor
8
from traits.api import HasTraits
9
from traitsui.api import Item, View
12
from tutorial1 import myplot
14
class PlotExample(HasTraits):
17
traits_view = View(Item('plot', editor=ComponentEditor(), show_label=False),
18
title="Chaco Tutorial")
22
if __name__ == "__main__":
23
demo.configure_traits()