Legen Sie die Schriftgröße der Achse außerhalb des Graph Builder-Skripts festHallo alle,
Ich habe danach gesucht ... einschließlich des Skriptindex unter Hilfe. Ich möchte die Schriftgröße meiner x-Achse mithilfe einer Codezeile außerhalb des Graph Builder-Skripts ändern. Siehe unten. Ich habe die Linie ausprobiert
Report(graph)[Axis Box( 1 )] << Axis Settings({Set Font Size(14)}) aber diese Zeile funktioniert natürlich nicht. Ich weiß, wie man die Schriftgröße innerhalb des Skripts von Graph Builder ändert, aber wie mache ich das über eine Codezeile außerhalb, sodass ich jederzeit die Schriftgröße meiner x-Achse ändern kann? Vielen Dank für jede Hilfe! Ich verwende JMP 12.
graph = Graph Builder(
Size( 1836, 599 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Variables( X( :marker ), Y( :Name( "uma" ) ), Y( :Name( "ina" ), Position( 1 ) ) ),
Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"marker",
ScaleBox,
{Label Row( {Show Major Grid( 1 ), Set Font Size( 6 )} )} //this way I know but I want to do it from outside
),
Dispatch(
{},
"uma",
ScaleBox,
{Add Ref Line( -4, "Dotted", "Black", "", 1 ), Add Ref Line( 4, "Dotted", "Black", "", 1 )}
)
)
);
Report( graph )[Axis Box( 1 )] << Axis Settings( {Set Font Size( 14 )} );Betreff: Stellen Sie die Schriftgröße der Achse außerhalb des Graph Builder-Skripts einVielen Dank Jim, es hat funktioniert! Nur eine Anmerkung für das Forum: Im Skript des Graph Builders sollte die automatische Schriftgröße auf Null gesetzt sein (siehe unten).
graph = Graph Builder(
Size( 1836, 599 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Variables( X( :marker ), Y( :Name( "uma" ) ), Y( :Name( "ina" ), Position( 1 ) ) ),
Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"marker",
ScaleBox,
{Label Row(
{Automatic Font Size( 0 ), Show Major Grid( 1 ), Set Font Size( 6 )}//THIS SETS AUTOMATIC FONT SIZE TO ZERO!!
)}
),
Dispatch(
{},
"uma",
ScaleBox,
{Add Ref Line( -4, "Dotted", "Black", "", 1 ), Add Ref Line( 4, "Dotted", "Black", "", 1 )}
)
)
);
Report( graph )[axis box( 1 )] << label row( set font size( 14 ) );
Betreff: Stellen Sie die Schriftgröße der Achse außerhalb des Graph Builder-Skripts einSie müssen Ihre Anfrage an die Axis Box() weiterleiten;
graph = Graph Builder(
Size( 1836, 599 ),
Show Control Panel( 0 ),
Legend Position( "Bottom" ),
Variables( X( :marker ), Y( :Name( "uma" ) ), Y( :Name( "ina" ), Position( 1 ) ) ),
Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"marker",
ScaleBox,
{Label Row( {Show Major Grid( 1 ), Set Font Size( 6 )} )} //this way I know but I want to do it from outside
),
Dispatch(
{},
"uma",
ScaleBox,
{Add Ref Line( -4, "Dotted", "Black", "", 1 ),
Add Ref Line( 4, "Dotted", "Black", "", 1 )}
)
)
);
report(graph)[axis box(1)]<