larray.ExcelReport.set_item_default_size

ExcelReport.set_item_default_size(self, kind, width=None, height=None)

Override the default ‘width’ and ‘height’ values for the given kind of item. A new value must be provided at least for ‘width’ or ‘height’.

Parameters:
kind : str

kind of item for which default values of ‘width’ and/or ‘height’ are modified. Currently available kinds are ‘title’ and ‘graph’.

width : int, optional

new default width value.

height : int, optional

new default height value.

Examples

>>> report = ExcelReport()
>>> report.set_item_default_size('graph', width=450, height=250)