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;