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’)
draw_order : Instance(list, args=(DEFAULT_DRAWING_ORDER)) draw_layer : Str(‘plot’) use_draw_order : Bool(True)
plot_components : Property
|
---|
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
|
---|
Returns the size (width,height) that is preferred for this component.
Overrides PlotComponent
Bases: enthought.chaco.plot_containers.StackedPlotContainer
A plot container that stacks all of its components horizontally. Resizable components share the free space evenly. All components are stacked from according to stack_order* in the same order that they appear in the **components list.
Traits: | draw_order : Instance(list, args=(DEFAULT_DRAWING_ORDER)) stack_order : Enum(‘left_to_right’, ‘right_to_left’)
spacing : Float(0.0)
valign : Enum(‘bottom’, ‘top’, ‘center’)
|
---|
Bases: enthought.chaco.plot_containers.StackedPlotContainer
A plot container that stacks plot components vertically.
Traits: | draw_order : Instance(list, args=(DEFAULT_DRAWING_ORDER)) stack_dimension : ‘v’
other_dimension : ‘h’
stack_index : 1
halign : Enum(‘left’, ‘right’, ‘center’)
stack_order : Enum(‘bottom_to_top’, ‘top_to_bottom’)
spacing : Float(0.0)
|
---|
Bases: enthought.chaco.base_plot_container.BasePlotContainer
A GridPlotContainer consists of rows and columns in a tabular format.
Each cell’s width is the same as all other cells in its column, and each cell’s height is the same as all other cells in its row.
Although grid layout requires more layout information than a simple ordered list, this class keeps components as a simple list and exposes a shape trait.
Traits: | draw_order : Instance(list, args=(DEFAULT_DRAWING_ORDER)) spacing : Either(Tuple, List, Array)
valign : Enum(‘bottom’, ‘top’, ‘center’)
halign : Enum(‘left’, ‘right’, ‘center’)
shape : Trait((0, 0), Either(Tuple, List, Array))
component_grid : Property
|
---|
Returns the size (width,height) that is preferred for this component.
Overrides PlotComponent.