有人知道如何使用JSL將圖片文件(.jpg)加載到Graph Builder中嗎?在一個交互式會話中,您可以拖放,但我不清楚JSL是如何完成的。 看起來似乎有某種“從炭到炭”的要求,但我嘗試了很多嘗試都沒有成功。
嘗試這個。不是最漂亮的代碼,但是可以完成工作。不知道是否可以使其更簡單。
唐
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;