marsilea.layout.StackCrossLayout#
- class StackCrossLayout(layouts, direction='horizontal', align='center', spacing=0, margin=0, name=None)#
Bases:
_MarginMixinA stack of cross layouts
This class allow users to stack multiple cross layouts either horizontally or vertically
Multiple StackCrossLayout can also be stacked
Warning
This class are not supposed to be used directly by user
- Parameters:
- layoutslist of
CrossLayout,StackCrossLayout The layouts to be stacked
- direction{“horizontal”, “vertical”}
The direction of the stack, horizontal will stack from left to right vertical will stack from top to bottom
- align{“center”, “bottom”, “top”, “left”, “right”}
The alignment of the stack, the default is center
- layoutslist of
- add_legend_ax(side, size, pad=0.0)#
Extend the layout
This is used to draw legends after concatenation
- freeze(figure=None, scale=1, _debug=False)#
- get_ax(layout_name, ax_name)#
- get_bbox_height()#
- get_bbox_size()#
- get_bbox_width()#
- get_figure_size()#
- get_layout_anchors()#
Get the anchor points of all layouts assume the layout is not composite
- get_legend_ax()#
- get_main_ax(layout_name)#
- get_main_height()#
- get_main_width()#
- get_side_size(side)#
- remove_legend_ax()#
- set_anchor(anchor)#
- set_figsize(figsize)#
- set_layout_anchors(anchors)#
- set_legend_size(size)#