大家好,
我想輪換一個詞“其中(:年齡==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" )} )
)
);
保存的腳本會告訴您在哪裡添加旋轉文本的指令。
這有幫助嗎?
問候,
菲爾