如何在报告或日记中附加图形生成器绘图?你好,
三天前我刚刚开始使用这种语言。 我正在开发一个脚本,该脚本可以根据图形生成器中的某些规范自动创建绘图。 我坚持的步骤是将所有图表整合到报告或日记中,以便于理解。
// x_col and y_cols contain the selected columns for which graphs have to be plotted. x_col is singular
x_col = dlg["xList"];
y_cols = dlg["yList"];
// Iterate over the Y columns and create a Graph Builder plot for each
For(i = 1, i <= N Items(y_cols), i++,
gb = dt << Graph Builder(
Size(534, 456),
Show Control Panel(0),
Variables(X(x_col[1]), Y(y_cols[i])),
Elements(Points(X, Y, Legend(7))),
invisible
);
gb << Save Picture("Plot_" || Char(i) || ".emf", EMF);
);我可以将绘图保存为图像,但要求是将图像保存在文件夹和报告/期刊中。 任何帮助,将不胜感激。
谢谢你!
自动化和脚本编写基础数据分析和建模分享和交流结果回复:如何在报告或日记中附加图形生成器绘图?嗨,我想我现在已经解决了。 与大家共享脚本,以防其他人遇到同样的问题
nw = New Window( "graphs", myVLB = V List Box() );
// Iterate over the Y columns and create a Graph Builder plot for each
For(i = 1, i <= N Items(y_cols), i++,
gb = dt << Graph Builder(
Size(534, 456),
Show Control Panel(0),
Variables(X(x_col[1]), Y(y_cols[i])),
Elements(Points(X, Y, Legend(7))),
invisible
);
myVLB << append( Report( gb ) );
gb << delete;
);