Eine einfache Frage zum JMP-Skript: Wie dreht man ein Wort, das sich außerhalb des Diagramms befindet?Hallo alle,
Ich möchte ein Wort drehen " where( :age==14)" das sich außerhalb des Diagramms in einem Popup-Fenster befindet.
Hier ist das Skript.
Können Sie mir sagen, wie man ein Skript erstellt?Vielen Dank im Voraus. : )
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( "" )} )
)
);

Betreff: Einfache JMP-Skriptfrage: Wie dreht man ein Wort, das sich außerhalb des Diagramms befindet?Wow ~~~
Das ist es, was ich suche!!
Vielen Dank, 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
Ich habe eine „Textfeldnummer“ gefunden
auch über die Schaltfläche „Baumstruktur anzeigen“ im Fenster aufrufen.

Betreff: Einfache JMP-Skriptfrage: Wie dreht man ein Wort, das sich außerhalb des Diagramms befindet?Hier ist eine Methode, die ich in der Vergangenheit verwendet habe.Es verwendet eine unsichtbare Outline Box(), um einfachen Zugriff auf die Textbox() zu erhalten, die Sie bearbeiten möchten und die außerhalb des Plattformobjekts liegt
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 );Betreff: Einfache JMP-Skriptfrage: Wie dreht man ein Wort, das sich außerhalb des Diagramms befindet?Betreff: Einfache JMP-Skriptfrage: Wie dreht man ein Wort, das sich außerhalb des Diagramms befindet?Hallo Phil,
Danke für die Antwort. : )
Allerdings würde ich es gerne tun Drehen das Textfeld „where( :age == 14 )“, Kein Y-Achsentitel.
Betreff: Einfache JMP-Skriptfrage: Wie dreht man ein Wort, das sich außerhalb des Diagramms befindet?Ich habe in Graph Builder ein ähnliches Diagramm erstellt, den Text der Y-Achse gedreht und dann das Skript in einem Skriptfenster gespeichert (Menü „Rotes Dreieck“ > „Skript speichern“ > „Im Skriptfenster“).
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" )} )
)
);
Das gespeicherte Skript zeigt Ihnen, wo Sie die Anweisung zum Drehen von Text hinzufügen können.
Hilft das?
Grüße,
Phil