marsilea.base.StackBoard#

class StackBoard(boards, direction='horizontal', align='center', spacing=0.2, margin=0, keep_legends=False)#

Bases: _GroupBoard

Stack multiple boards

Parameters:
boardslist of WhiteBoard, StackBoard

The boards to stack, a StackBoard may be stacked itself

direction{“horizontal”, “vertical”}, default: “horizontal”

Stack from left to right, or from top to bottom

align{“center”, “top”, “bottom”, “left”, “right”}, default: “center”

How to align the boards on the other axis, relative to their main canvas. Only “center”, “top” and “bottom” are valid for direction=”horizontal”, and only “center”, “left” and “right” for direction=”vertical”.

spacingfloat, default: 0.2

The space between two boards in inches

marginfloat, 4-tuple, default: 0

The margin space reserved around the whole canvas in inches

keep_legendsbool, default: False

Whether to keep the legends in each board. If False, you can group all legends with .add_legends()

layout = None#