Download Chaco Documentation - Enthought Tool Suite

Transcript
Chaco Documentation, Release 3.0.0
map_data(screen_pts)
map_data(screen_pts) -> data_vals
Maps values from screen space into data space.
map_screen(data_pts)
map_screen(data_pts) -> screen_array
Maps values from data space into screen space.
8.4 Containers
8.4.1 BasePlotContainer
class BasePlotContainer(*components, **traits)
Bases: enthought.enable.container.Container
A container for PlotComponents that conforms to being laid out by PlotFrames. Serves as the base class for
other PlotContainers.
PlotContainers define a layout, i.e., a spatial relationship between their contained components. (BasePlotContainer doesn’t define one, but its various subclasses do.)
BasePlotContainer is a subclass of Enable Container, so it is possible to insert Enable-level components into it.
However, because Enable components don’t have the correct interfaces to participate in layout, the visual results
will probably be incorrect.
Traits container_under_layers : Tuple(‘background’, ‘image’, ‘underlay’, ‘plot’)
Redefine the container layers to name the main layer as “plot” instead of the Enable
default of “mainlayer”
draw_order : Instance(list, args=(DEFAULT_DRAWING_ORDER))
draw_layer : Str(‘plot’)
use_draw_order : Bool(True)
Deprecated flag to indicate that a component needed to do old-style drawing. Unused
by any recent Chaco component.
plot_components : Property
Deprecated property for accessing the components in the container.
8.4.2 OverlayPlotContainer
class OverlayPlotContainer(*components, **traits)
Bases: enthought.chaco.base_plot_container.BasePlotContainer
A plot container that stretches all its components to fit within its space. All of its components must therefore be
resizable.
Traits draw_order : Instance(list, args=(DEFAULT_DRAWING_ORDER))
use_backbuffer : False
Do not use an off-screen backbuffer.
get_preferred_size(components=None)
Returns the size (width,height) that is preferred for this component.
Overrides PlotComponent
Contents
71