如何在報告或日記中附加圖形生成器繪圖?你好,
三天前我剛剛開始使用這種語言。 我正在開發一個腳本,該腳本可以根據圖形生成器中的某些規範自動創建繪圖。 我堅持的步驟是將所有圖表整合到報告或日記中,以便於理解。
// 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;
);