User`s guide
mlreportgen.dom.Group.append
11-57
mlreportgen.dom.Group.append
Package: mlreportgen.dom
Add DOM object to group
Syntax
domObjOut = append(groupObj,domObj)
Description
domObjOut = append(groupObj,domObj) appends a DOM object to a group. Use
groups to append a set of document elements together.
Examples
Append a Paragraph to a Group
import mlreportgen.dom.*;
myReport = Document('myDoc','html');
x = 0:pi/100:2*pi;
y = sin(x);
plot1 = plot(x,y);
saveas(plot1,'plot1.png')
plotimage = Image('plot1.png');
para = Paragraph('Value of the sine function from 0 to 2pi');
groupForPlot = Group();
append(groupForPlot,para);
append(groupForPlot,plotimage);
append(myReport,groupForPlot);
close(myReport);
rptview('myDoc','html');
• “Add Content to a Report”