Get snapshot image path
imgpath = getSnapshotImage(figReporter,report)
creates an image of the figure window specified by
imgpath = getSnapshotImage(
returns a path to a file containing the image. Use this method to customize the layout
of figures in your report.
imgpath— Figure path
Figure path of file containing the figure, returned as a string.
import mlreportgen.report.* import mlreportgen.dom.* report = Report('peaks'); surf(peaks(20)); figure = Figure(); peaks20 = Image(getSnapshotImage(figure, report)); peaks20.Width = '3in'; peaks20.Height = ; figure = peaks20; delete(gcf); add(report, figure) close(report); rptview(report);