你好,
三天前我刚刚开始使用这种语言。 我正在开发一个脚本,该脚本可以根据图形生成器中的某些规范自动创建绘图。 我坚持的步骤是将所有图表整合到报告或日记中,以便于理解。
// 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);
);我可以将绘图保存为图像,但要求是将图像保存在文件夹和报告/期刊中。 任何帮助,将不胜感激。
谢谢你!