大家好,我有一個 JMP 腳本,它使用不同的數據表生成包含不同圖表的日誌。 使用日誌,我如何在不必選擇要使用的數據表的情況下重新運行繪圖。
For( i = 1, i <= N Items( colPlotType ), i++,
/* SET THE CURRENT DATA TABLE TO THE APPROPRIATE REPORT TYPE */
If(
/* IF REPORT TYPE IS PD*/
colReportType[i] == "PD",
/* THEN */
If(
Is Empty( partdata_table ) != 1,
current_table = partdata_table;
Current Data Table( partdata_table ),
Continue()
),
/* IF REPORT TYPE IS ICC*/
colReportType[i] == "ICC",
/* THEN */
If(
Is Empty( icc_table ) != 1,
current_table = icc_table;
Current Data Table( icc_table ),
Continue()
),
);
上面的片段腳本是我如何將不同的數據錶鍊接到每個圖以生成圖。
流程:
1)打開並讀取csv文件
2) csv 文件中的每一行根據 colReportType[i] 繪製一個圖
3)如果colReportType[i] == "ICC",然後它將使用 icc 數據表。