Una pregunta simple de JMP Script: cómo rotar una palabra que está fuera del gráficoHola a todos,
Me gustaría rotar una palabra " donde( :edad==14)" que está fuera del gráfico en una ventana emergente.
Aquí está el guión.
¿Podrías decirme cómo hacer un guión?Gracias de antemano. : )
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( "" )} )
)
);

Re: Pregunta simple de JMP Script: Cómo rotar una palabra que está fuera del gráficoGuau ~~~
¡¡Eso es lo que estoy buscando!!
¡Muchas gracias Jim!: )
================================================== =============
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
Encontré un "número de cuadro de texto"
desde el botón "mostrar estructura de árbol" en la ventana también.

Re: Pregunta simple de JMP Script: Cómo rotar una palabra que está fuera del gráficoAquí hay un método que he usado en el pasado.Utiliza un cuadro de contorno invisible () para obtener un fácil acceso al cuadro de texto () que desea manipular, que se encuentra fuera del objeto de la plataforma
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 );Re: Pregunta simple de JMP Script: Cómo rotar una palabra que está fuera del gráficoRe: Pregunta simple de JMP Script: Cómo rotar una palabra que está fuera del gráficohola phil,
Gracias por la respuesta. : )
Sin embargo, me gustaría Girar el cuadro de texto "donde( :edad == 14 )" , No es el título del eje Y.
Re: Pregunta simple de JMP Script: Cómo rotar una palabra que está fuera del gráficoCreé un gráfico similar en Graph Builder, giré el texto del eje y y luego guardé el guión en una ventana de guión (menú Triángulo rojo > Guardar guión > Ventana de guión).
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" )} )
)
);
El script guardado le muestra dónde agregar la instrucción para rotar el texto.
¿Eso ayuda?
Saludos,
phil