JSL:布局(‘按行排列’)在通过脚本进行日志处理时丢失亲爱的 JMP 社区成员,
我在编写脚本时偶然发现了以下问题(附有示例):
- 如果我使用以下脚本,“jrn1 << Journal;”会导致转移到日记帐,但没有“Group Options(Layout('Arrange in Rows', N Across(2)))”,。
- 如果我使用手动选项(编辑>>日志或 Crtl + J),则会保留两列布局。
是否存在另一个保留我不知道的布局的“日志语法”或者这是一个错误?
除了通过“H 列表框 ()”格式化日记布局之外,我还有其他选择吗?
最好的,
施特菲
kin1 = current data table();<BR /><BR />jrn1 = kin1 << Bivariate(
Y( :response ),
X( :time),
Size(400, 325),
Fit Each Value( {Line Color( {212, 73, 88} )} ),
By( :ID ),
Group Options( Layout( "Arrange in Rows", N Across( 2 ) ) ),
);
Current Report()[OutlineBox(1)] << setTitle("Kinetics"); //Adjust the header retroperspectively
jrn1 << Journal;吉恩
自动化和脚本回复:JSL:布局(‘按行排列’)在通过脚本进行日志处理时丢失jrn1 将包含双变量平台的多个引用,您只想使用其中一个(或者甚至更高级别)。例如,您可以像这样修改脚本
Names Default To Here(1);
kin1 = Current Data Table();
jrn1 = kin1 << Bivariate(
Y(:response),
X(:time),
Size(400, 325),
Fit Each Value({Line Color({212, 73, 88})}),
By(:ID),
Group Options(Layout("Arrange in Rows", N Across(2))),
);
Current Report()[Outline Box(1)] << setTitle("Kinetics"); //Adjust the header retroperspectively
(jrn1[1] << Top Parent)<< Journal;

回复:JSL:布局(‘按行排列’)在通过脚本进行日志处理时丢失保存日志覆盖 Fit Group 的图表与此类似,但如果我没记错的话,还有一种更好的方法,但很难找到或记住……如果我设法找到它,我会编辑这个回复。
编辑:终于找到了。(在我看来)很难找到,但这里是:在 Group Options 上使用 Return Group(1)(我已将其添加到我的个人提示和技巧文件中,希望下次有人遇到类似问题时,我会更容易找到它)
Names Default To Here(1);
kin1 = Current Data Table();
jrn1 = kin1 << Bivariate(
Y(:response),
X(:time),
Size(400, 325),
Fit Each Value({Line Color({212, 73, 88})}),
By(:ID),
Group Options(Layout("Arrange in Rows", N Across(2)), Return Group(1)),
);
Current Report()[Outline Box(1)] << setTitle("Kinetics"); //Adjust the header retroperspectively
jrn1 << Journal;
Names Default To Here(1);
Open Help(
"Scripting Index",
Search(
Term("Group Options"),
Match(
{"Contains Terms",
"Match All Terms",
"Ignore Case"}
)
),
IndexContext(
Category("All Categories"),
Object("Search results"),
Method("Group Options")
)
);
