marsilea.base.WhiteBoard#
- class marsilea.base.WhiteBoard(width=None, height=None, name=None, margin=0.2)#
Bases:
LegendMakerThe base class that handle all rendering process
- add_bottom(plot, name=None, size=None, pad=0.0, legend=True)#
- add_canvas(side, name, size, pad=0.0)#
- add_layer(plot, zorder=None, name=None, legend=True)#
- add_left(plot, name=None, size=None, pad=0.0, legend=True)#
- add_pad(side, size)#
- add_plot(side, plot, name=None, size=None, pad=0.0, legend=True)#
- add_right(plot, name=None, size=None, pad=0.0, legend=True)#
- add_title(top=None, bottom=None, left=None, right=None, pad=0, **props)#
- add_top(plot, name=None, size=None, pad=0.0, legend=True)#
- append(side, other)#
- figure = None#
- get_ax(name)#
Get a specific axes by name when available
If the axes is split, multiple axes will be returned
Note
This will not work before render is called
- get_main_ax()#
Return the main axes
- layout#
- render(figure=None, scale=1)#
- Parameters:
- figure
- scale
- Returns:
- save(fname, **kwargs)#
- set_margin(margin)#