add_table#

AnsysReport.add_table(title, content, formatting=None, col_widths=None)[source]#

Add a new table from a list of data. Data shall be a list of list where every line is either a row or a column.

Parameters:
titlestr

Table title.

contentlist of list

Table content.

formattinglist, optional

List of formatting elements for the table rows. The length of the formatting has to be equal to the length of content. Every element is a list of two elements (color, background_color). Color is a RGB list.

col_widthslist, optional

List of column widths.