larray.ReportSheet

class larray.ReportSheet[source]

Represents a sheet dedicated to contains only graphical items (title banners, graphs).

See ExcelReport for use cases.

Parameters
template_dirstr or Path, optional

Path to the directory containing the Excel template files (with a ‘.crtx’ extension). Defaults to None.

templatestr or Path, optional

Name of the template to be used as default template. The extension ‘.crtx’ will be added if not given. The full path to the template file must be given if no template directory has been set. Defaults to None.

graphs_per_rowint, optional

Default number of graphs per row. Defaults to 1.

See also

ExcelReport
__init__()[source]

Methods

__init__()

add_graph(data[, title, template, width, ...])

Add a graph item to the current sheet.

add_graphs(array_per_title, ...[, template, ...])

Add multiple graph items to the current sheet.

add_title(title[, width, height, fontsize])

Add a title item to the current sheet.

newline()

Force a new row of graphs.

set_item_default_size(kind[, width, height])

Override the default 'width' and 'height' values for the given kind of item.

Attributes

graphs_per_row

Default number of graphs per row.

template

Set a default Excel template file.

template_dir

Set the path to the directory containing the Excel template files (with '.crtx' extension).