enable.simple_layout module

Helper functions for a simple layout algorithm – the same one used by OverlayPlotContainer. Designed to be called from a container, but separated out because they are useful from ViewPort and Container

enable.simple_layout.simple_container_do_layout(container, components=None)[source]

Actually performs a layout (called by do_layout()).

enable.simple_layout.simple_container_get_preferred_size(container, components=None)[source]

Returns the size (width,height) that is preferred for this component.

Overrides PlotComponent.