FrameBox 내에서 TextSeg의 x/y 위치를 지정하는 방법이 있습니까?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"
)
)}
)
)
);
자동화 및 스크립팅Re: FrameBox 내에서 TextSeg의 x/y 위치를 지정하는 방법이 있습니까?좋아, 실제로 Text()를 알고 있었습니다. TextSeg는 나에게 비교적 새로운 것이기 때문에 그 한계가 궁금했습니다. 고마워요 저스틴!
Re: FrameBox 내에서 TextSeg의 x/y 위치를 지정하는 방법이 있습니까?텍스트의 X 및 Y 위치를 제어하려면 TextSeg가 항상 왼쪽 상단에 나타나기 때문에 TextSeg 대신 FrameBox에 그래픽 스크립트를 추가해야 합니다.
예는 다음과 같습니다.
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" )
);