大家好,
我想轮换一个词“其中(:年龄==14)”在弹出窗口中的图形之外。
这是脚本。
你能告诉我如何制作脚本吗?提前致谢。 
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw = dt << Graph Builder(
Size( 563, 452 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
where( :age == 14 ), // <- I want to rotate this text in the graph window.
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Hight " )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
);

哇~~~
这就是我要找的!!
非常感谢吉姆!:)
================================================ =============
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); // data table
nw = New Window( "the output",
H List Box(
Graph Builder(
Size( 563, 452 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
where( :age == 12 ), // <- I want to rotate this text in the graph window.
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Hight " )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
), // end of graph (age=12)
Graph Builder(
Size( 563, 452 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
where( :age == 13 ), // <- I want to rotate this text in the graph window.
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Hight " )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
), // end of graph (age=13)
), // end of H list box
H List Box(
Graph Builder(
Size( 563, 452 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
where( :age == 14 ), // <- I want to rotate this text in the graph window.
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Hight " )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
), // end of graph (age=14)
Graph Builder(
Size( 563, 452 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
where( :age == 15 ), // <- I want to rotate this text in the graph window.
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Hight " )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
), // end of graph (age=15)
), // end of H list box
// ) // end of outline box
); // end of new window
/*Check text box numbers by clicking "show tree structure" from the graph window*/
nw[Text Box( 1 )] << rotate text( left ); // rotate text
//nw[Text Box( 1 )] << hide (1); // hide text
nw[Text Box( 5 )] << rotate text( left ); // rotate text
//nw[Text Box( 5 )] << hide (1); // hide text
nw[Text Box( 9 )] << rotate text( left ); // rotate text
//nw[Text Box( 9 )] << hide (1); // hide text
nw[Text Box( 13 )] << rotate text( left ); // rotate text
//nw[Outline Box( 1 )][Text Box( 13 )] << hide (1); // hide text
我找到了一个“文本框编号”
也可以从窗口上的“显示树结构”按钮。

这是我过去使用的一种方法。它使用一个不可见的 Outline Box() 来轻松访问您想要操作的 Text Box(),它位于平台对象之外
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw = New Window( "the output",
ob = Outline Box( "",
dt << Graph Builder(
Size( 563, 452 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
where( :age == 14 ), // <- I want to rotate this text in the graph window.
Elements( Points( X, Y, Legend( 8 ) ), Smoother( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "Hight " )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
)
);
nw[Outline Box( 1 )][Text Box( 1 )] << rotate text( left );嗨,菲尔,
谢谢你的回答。 
但是我想旋转文本框“哪里(:年龄== 14)”,不是 Y 轴标题。
我在图形生成器中构建了一个类似的图形,旋转了 y 轴的文本,然后将脚本保存到脚本窗口(红色小三角菜单 > 保存脚本 > 到脚本窗口)。
Graph Builder(
Size( 514, 444 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch( {}, "Y title", TextEditBox, {Rotate Text( "Horizontal" )} )
)
);
保存的脚本会告诉您在哪里添加旋转文本的指令。
这有帮助吗?
问候,
菲尔