align_layouts#
- align_layouts(layout_circles_pairs)#
Place multiple layouts side-by-side with a uniform horizontal gap.
This function translates each subsequent layout (and its companion circles) so that their bounding boxes are laid out left-to-right with a fixed gap.
- Parameters:
layout_circles_pairs (list[tuple[dict, dict]]) –
- A list of pairs
(layout, circles)
: layout
: dict mapping identifiers to complex points (positions).circles
: dict mapping identifiers toCircle
objects.
Both dicts are modified in place.
- A list of pairs
- Returns:
None. The input dictionaries are translated in place.
- Return type:
None
Notes
The horizontal gap equals twice the mean radius across all provided
circles
(averaged per pair, then across pairs).