sastraxi/vizier — Issue #11: Spaces should be able to calculate their own size
Author: sastraxi
Created: 2011-10-21 16:59:36+00:00
State: open

Right now layouts tell spaces explicitly what width/height to draw in, without consulting them.
If we added a consultation step, Space.minimum_size(), we could lay things out in a "shrink-wrap" style.
This would let us use a layout for ContinuousPlot, like:

layout = GridLayout(rows=4, columns=3, spacing=10.0)
layout[0, 1] = VerticalLayout(TitleTextLayout(title), SubtitleTextLayout(subtitle))
layout[1, 0] = TextLayout(y_axis_label, rotation=0.25 * CCW_TURN, halign=CENTER, valign=MIDDLE)
layout[1, 1] = ActualGraph(...)
layout[1, 2] = Legend(...)
layout[2, 1] = TextLayout(x_axis, label, halign=CENTER, valign=MIDDLE)
layout[3, 1] = ThresholdLegent(...)