¿Hay alguna manera de especificar la posición x/y de un TextSeg dentro de un FrameBox?Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit(
X,
Y,
Legend( 4 ),
Degree( "Cubic" ),
Confidence of Prediction( 1 ),
Root Mean Square Error( 1 ),
Equation( 1 )
)
),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
{DispatchSeg(
TextSeg( 1 ),
Set Text(
"weight = -3850 + 197.7*height - 3.343*height² + 0.01906*height³
RMSE: 15.77 Tallest: Lawrence"
)
)}
)
)
);
Automatización y secuencias de comandosRe: ¿Hay alguna manera de especificar la posición x/y de un TextSeg dentro de un FrameBox?Ok, de hecho estaba al tanto de Text(). Como TextSeg era relativamente nuevo para mí, me preguntaba cuáles eran sus limitaciones. Gracias justin!
Re: ¿Hay alguna manera de especificar la posición x/y de un TextSeg dentro de un FrameBox?Si desea controlar las posiciones X e Y del texto, deberá agregar un script de gráficos al FrameBox en lugar de al TextSeg, ya que TextSeg siempre aparecerá en la esquina superior izquierda.
Aquí hay un ejemplo:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
gb = dt << Graph Builder(
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit(
X,
Y,
Legend( 4 ),
Degree( "Cubic" ),
Confidence of Prediction( 1 ),
Root Mean Square Error( 1 ),
Equation( 1 )
)
)
);
Report( gb )[FrameBox( 1 )] << Add Graphics Script(
Text( Center Justified, {60, 40}, "Tallest: Lawrence" )
);