大家好,我有一个 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 数据表。