JSL을 사용하여 그림 파일 (.jpg)을 Graph Builder에로드하는 방법을 아는 사람이 있습니까? 대화식 세션에서 끌어서 놓을 수 있습니다. JSL이 어떻게 수행하는지 명확하지 않습니다. 일종의 Char To Blob 요구 사항이있는 것 같지만 성공하지 못한 많은 것들을 시도했습니다.
이 시도. 가장 예쁜 코드는 아니지만 작업을 완료합니다. 더 간단하게 만들 수 있는지 확실하지 않습니다.
님
tblRef = Open("$Sample_Data/big class.jmp");
pathToImage = ""; //Put path to image here
gbPlt = Graph Builder(
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
Elements( Line( X, Y, Legend( 3 ) ), Points( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
4,
Base( 0, 0, 0 ),
Base( 1, 0, 1 ),
Properties( 0, {Marker( "Plus" )} ),
Properties( 1, {Marker( "Square" )} )
)}
)
)
);
Report(gbPlt)[Frame Box(1)] << Add Image(Open(pathToImage));
iSeg = Report(gbPlt)[Frame Box(1)] << Find Seg(Pict Seg(1));
iSeg << Fill Graph;