C'è un modo per specificare la posizione x/y di un TextSeg all'interno di 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"
)
)}
)
)
);
Automazione e scriptingRi: Esiste un modo per specificare la posizione x/y di un TextSeg all'interno di un FrameBox?Ok, in effetti ero a conoscenza di Text(). Essendo TextSeg relativamente nuovo per me, mi chiedevo quali fossero i suoi limiti. Grazie Giustino!
Ri: Esiste un modo per specificare la posizione x/y di un TextSeg all'interno di un FrameBox?Se vuoi controllare le posizioni X e Y del testo, dovrai aggiungere uno script grafico al FrameBox invece che al TextSeg poiché il TextSeg apparirà sempre nell'angolo in alto a sinistra.
Ecco un esempio:
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" )
);