在圖形構建器腳本之外設置軸字體大小大家好,
我一直在尋找這個...包括幫助下的腳本索引。 我想使用圖形生成器腳本外部的代碼行更改 x 軸的字體大小。 請看下文。 我嘗試了這條線
Report(graph)[Axis Box( 1 )] << Axis Settings({Set Font Size(14)}) 但這條線當然不起作用。 我知道如何在圖形生成器的腳本中更改字體大小,但是如何通過外部代碼行來更改字體大小,以便隨時更改 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 )} );回复:在圖形構建器腳本之外設置軸字體大小非常感謝吉姆,它成功了! 論壇需要注意一點:圖形生成器的腳本應將自動字體大小設置為零(見下文)。
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)]<