Package: mlreportgen.report
Create table reporter
Create a reporter for a table that has a title.
creates an empty table
reporter. Use its properties to specify the table content, automatically numbered table
title, and table style and width.table
= BaseTable()
creates a table reporter that formats the table
= BaseTable(content
)content
as a table and
adds it to a report.
sets properties using name-value pairs. You can specify multiple name-value pair
arguments in any order. Enclose each property name in single quotes.table
= BaseTable(Name,Value
)
createTemplate | Create table template |
customizeReporter | Create custom base table reporter class |
getClassFolder | Base table class definition file location |
getContentReporter | Get base table content hole reporter |
getTitleReporter | Get base table title reporter |
copy | Create copy of reporter object and make deep copies of property values that reference a reporter, ReporterLayout, or DOM object |
customizeReporter | Create class derived from Reporter class |
getImpl | Get implementation of reporter |
Add two tables to a report. The first table is a rank 5 magic square. The second table includes two images.
import mlreportgen.report.* import mlreportgen.dom.* rpt = Report('tables'); chapter = Chapter(); chapter.Title = 'Table example'; add(rpt,chapter); table = BaseTable(magic(5)); table.Title = 'Rank 5 Magic Square'; add(rpt,table); add(rpt,Paragraph()); imgSize = {Height('2in'),Width('2in')}; img1 = Image(which('b747.jpg')); img1.Style = imgSize; img2 = Image(which('peppers.png')); img2.Style = imgSize; table = BaseTable({'Boeing 747' 'Peppers'; img1, img2}); table.Title = 'Picture Gallery'; add(rpt,table); delete(gcf); rptview(rpt);
mlreportgen.dom.FormalTable
| mlreportgen.dom.MATLABTable
| mlreportgen.dom.Table
| mlreportgen.report.Report
| mlreportgen.report.Reporter