Main Content
getSnapshotImage
Class: mlreportgen.report.Figure
Namespace: mlreportgen.report
Get snapshot image path
Syntax
imgpath = getSnapshotImage(figReporter,report)
Description
creates an image of the figure window specified by imgpath
= getSnapshotImage(figReporter
,report
)figReporter
and
returns a path to a file containing the image. Use this method to customize the layout
of figures in your report.
Input Arguments
Output Arguments
Examples
Change the Size of a Snapshot Image
import mlreportgen.report.* import mlreportgen.dom.* rpt = Report('peaks'); surf(peaks(20)); figure = Figure(); peaks20 = Image(getSnapshotImage(figure,rpt)); peaks20.Width = '3in'; peaks20.Height = []; figure = peaks20; delete(gcf); add(rpt,figure) close(rpt); rptview(rpt);
Version History
Introduced in R2017b