设置在多个选项卡中打开的控制图的标题大家好 ,
我想更改在各个选项卡中打开的每个单独控制图的标题,我尝试设置标题(“xxx”),但出现错误,任何人都可以提供帮助吗?
For( i = 1, i <= n Items(losscode), i++,
TB << Add(
losscode[i],ob1 = Outline Box( "Pareto Chart",
dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :weight ), Y( :height ) ),
Chart( Position( 1 ), Limits( Sigma ) ),
Chart( Position( 2 ), Limits( Sigma ) ),
Where( :name == losscode[i] ))
)
)
);回复:设置在多个选项卡中打开的控制图的标题如果您想将控制图生成器更改为其他内容,这只是我之前的回复的简单扩展

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
summarize(dt,losscode=by(:sex));
nw=new window("Window", tb=tab box());
For( i = 1, i <= N Items( losscode ), i++,
TB << Add(
losscode[i],
ob1 = Outline Box( "Pareto Chart",
dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :weight ), Y( :height ) ),
Chart( Position( 1 ), Limits( Sigma ) ),
Chart( Position( 2 ), Limits( Sigma ) ),
Where( :sex == losscode[i] )
)
)
)
);
tb[tabpagebox(1)][OutlineBox(2)]<< set title("Female");
tb[tabpagebox(2)]["Control Chart Builder"] << set title("Male");回复:设置在多个选项卡中打开的控制图的标题纳尔逊,
但我想更改女性选项卡内控制图生成器的标题,而不是女性选项卡。
回复:设置在多个选项卡中打开的控制图的标题您已经非常接近语法正确了。但是,如果您查看正在创建的 Tab Box() 输出的树结构,您将看到 Tab Box() 中的每个选项卡都有一个 Tab Page Box()。您可以在该对象内发送更改标题的消息

这里
我建议您阅读脚本指南中的树结构
帮助==>书籍==>脚本指南
这是一个示例脚本
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
summarize(dt,losscode=by(:sex));
nw=new window("Window", tb=tab box());
For( i = 1, i <= N Items( losscode ), i++,
TB << Add(
losscode[i],
ob1 = Outline Box( "Pareto Chart",
dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :weight ), Y( :height ) ),
Chart( Position( 1 ), Limits( Sigma ) ),
Chart( Position( 2 ), Limits( Sigma ) ),
Where( :sex == losscode[i] )
)
)
)
);
tb[tabpagebox(1)]<<TITLE></TITLE>