getImageReporter
Class: mlreportgen.report.FormalImage
Namespace: mlreportgen.report
Get formal image reporter
Syntax
reporter = getImageReporter(image)
Description
returns a reporter that generates a formal image based on the reporter
= getImageReporter(image
)Image
property of mlreportgen.report.FormalImage
. The Image format overrides
any corresponding formats in the image template. Use this
getImageReporter
method to override the default image template of
the image.
Input Arguments
Output Arguments
Examples
Use Nondefault Image Style
Create a style that differs from the default image style. Before you run this
example, create a template named MyImageTemplate
and customize
its FormalImageImage
style. Then, use the
getImageReporter
method and the
TemplateSrc
property to use your
template.
import mlreportgen.report.* rpt = Report(); image = FormalImage(); imageReporter = getImageReporter(image); image.TemplateSrc = 'MyImageTemplate'; add(rpt,image);
Version History
Introduced in R2017b