Establecer el tamaño de fuente del eje fuera del script del generador de gráficosHola a todos,
He estado buscando este ... incluyendo el índice de secuencias de comandos en la ayuda. Me gustaría cambiar el tamaño de fuente de mi eje x utilizando una línea de código fuera de la secuencia de comandos del generador de gráficos. Por favor ver más abajo. Probé la línea
Informe (gráfico) [Cuadro de eje (1)] << Configuración de eje ({Establecer tamaño de fuente (14)}) pero esta línea no funciona, por supuesto. Sé cómo cambiar el tamaño de fuente dentro de la secuencia de comandos del generador de gráficos, pero ¿cómo hacerlo a través de una línea de código externa para que en cualquier momento pueda cambiar el tamaño de fuente de mi eje x? ¡Gracias por cualquier ayuda! Estoy usando 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 )} );Re: Establecer el tamaño de fuente del eje fuera del script del generador de gráficosMuchas gracias Jim, funcionó! Solo una nota para el foro: la secuencia de comandos del generador de gráficos debe tener el tamaño de fuente automático establecido en cero (ver más abajo).
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 ) );
Re: Establecer el tamaño de fuente del eje fuera del script del generador de gráficosDebe pasar su solicitud a la Caja del Eje ();
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)]<