marsilea.layout.CompositeCrossLayout#

class marsilea.layout.CompositeCrossLayout(main_layout, margin=0)#

Bases: _MarginMixin

A class to layout multiple Cross Layouts

Warning

This class are not supposed to be used directly by user

Parameters:
main_layoutCrossLayout

The main cross layout

add_legend_ax(side, size, pad=0.0)#

Extend the layout

This is used to draw legends after concatenation

append(side, other)#
figure = None#
freeze(figure=None, scale=1, _debug=False)#
get_ax(layout_name, ax_name)#
get_bbox_height()#
get_bbox_size()#

Get the minimum figsize that fits all layouts inside

get_bbox_width()#
get_figure_size()#

Figure size is bbox size + margin

get_legend_ax()#
get_main_anchor()#
get_side_size(side)#

Get the max extend of a side, the center is the main cell of the main layout, not the whole main layout legend axes included

plot(scale=1)#
set_anchor(anchor)#
set_legend_size(size)#