getCaptionReporter
类: mlreportgen.report.FormalImage
命名空间: mlreportgen.report
获取图像标题报告器
语法
reporter = getCaptionReporter(image)
说明
输入参数
输出参量
示例
使用非默认题注样式
为您的题注创建一种不同于默认样式的样式。在运行此示例之前,创建一个名为 MyCaptionTemplate 的模板并自定义其 FormalImageCaption 样式。然后,使用 getCaptionReporter 方法和 TemplateSrc 属性来使用您的模板。
import mlreportgen.report.* rpt = Report(); image = FormalImage(); captionReporter = getCaptionReporter(image); image.TemplateSrc = "MyCaptionTemplate"; add(rpt,image);
版本历史记录
在 R2017b 中推出