Existe-t-il un moyen de spécifier la position x/y d'un TextSeg dans une 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"
)
)}
)
)
);
Automatisation et scriptsRe : Existe-t-il un moyen de spécifier la position x/y d'un TextSeg dans une FrameBox ?Ok, j'étais effectivement au courant de Text(). TextSeg étant relativement nouveau pour moi, je me suis interrogé sur ses limites. Merci Justine!
Re : Existe-t-il un moyen de spécifier la position x/y d'un TextSeg dans une FrameBox ?Si vous souhaitez contrôler les positions X et Y du texte, vous devrez ajouter un script graphique au FrameBox plutôt qu'au TextSeg car le TextSeg apparaîtra toujours dans le coin supérieur gauche.
Voici un exemple:
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" )
);