![]() |
|
Navigation |
Synopsis Horizontal composition of a list of figures.
Function
Figure hcat(Figures figs, FProperty props...)
Description Horizontal composition is a special case of grid. It is a grid with just one row. See grid for more information.
See also vcat.
Examples
b1 = box(vshrink(0.5), fillColor("Red")); b2 = box(vshrink(0.8), fillColor("Blue")); b3 = box(vshrink(1.0), fillColor("Yellow")); render(hcat([b1, b2, b3]));gives: ![]() b2 aligned at the top:
b1 = box(vshrink(0.5), fillColor("Red")); b2 = box(vshrink(0.8), fillColor("Blue"),top()); b3 = box(vshrink(1.0), fillColor("Yellow")); render(hcat([b1, b2, b3]));gives: ![]() b2 aligned at the bottom:
b1 = box(vshrink(0.5), fillColor("Red")); b2 = box(vshrink(0.8), fillColor("Blue"),bottom()); b3 = box(vshrink(1.0), fillColor("Yellow")); render(hcat([b1, b2, b3]));gives: ![]() All boxes aligned at the bottom: b1 = box(vshrink(0.5), fillColor("Red")); b2 = box(vshrink(0.8), fillColor("Blue")); b3 = box(vshrink(1.0), fillColor("Yellow")); render(hcat([b1, b2, b3],std(bottom())));gives: ![]() ![]() |