![]() |
|
Navigation |
Synopsis Vertical composition of figures.
Function
Figure vcat(Figures figs, FProperty props...)
Description This is a special case of grid. It is a grid with just one column. See grid for more information.
See also hcat.
Examples
b1 = box(vshrink(0.8), fillColor("Red")); b2 = box(fillColor("Blue")); render(vcat([b1, b2]));gives: ![]() b1 = box(hshrink(0.5), fillColor("Red"), left()); b2 = box(hshrink(1.0),fillColor("Blue")); render(vcat([b1, b2]));gives: ![]() b1 = box(hshrink(0.5), fillColor("Red"), right()); b2 = box(hshrink(1.0),fillColor("Blue")); render(vcat([b1, b2]));gives: ![]() When several child figures are involved, it is more convenient to change the standard alignment for them using std. b1 = box(hshrink(0.7), fillColor("Red")); b2 = box(hshrink(1.0),vshrink(0.5), fillColor("Blue")); b3 = box(hshrink(0.5), fillColor("Yellow")); render(vcat([b1, b2, b3], std(left()), vgrow(1.1)));gives: ![]() ![]() |