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: v1

b1 = box(hshrink(0.5), fillColor("Red"), left());
b2 = box(hshrink(1.0),fillColor("Blue"));
render(vcat([b1, b2]));
gives: v2



b1 = box(hshrink(0.5), fillColor("Red"), right());
b2 = box(hshrink(1.0),fillColor("Blue"));
render(vcat([b1, b2]));
gives: v3

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: v5
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.