Graph Builderスクリプトの外側で軸フォントサイズを設定するこんにちは皆さん、
私はこれを探していました…助けを借りてのスクリプティングインデックスを含みます。グラフビルダースクリプトの外側のコード行を使用して、x軸のフォントサイズを変更したいです。下記を参照してください。私はラインを試しました
レポート(グラフ)[軸ボックス(1)] <<軸設定({フォントサイズの設定(14)})が、この行が正しく機能しない。Graph Builderのスクリプト内でフォントサイズを変更する方法はわかっていますが、X軸のフォントサイズをいつでも変更できるように、外部のコード行で変更する方法を教えてください。助けてくれてありがとう!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 )} );再:グラフビルダースクリプトの外側で軸フォントサイズを設定するJimさん、ありがとうございました。フォーラムについての1つのメモ:グラフビルダーのスクリプトは自動フォントサイズをゼロに設定するべきです(下記参照)。
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 ) );
再:グラフビルダースクリプトの外側で軸フォントサイズを設定するあなたはAxis Box()にあなたの要求を渡す必要があります。
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)]<