こんにちは、私は JMP を初めて使用するのですが、質問があります: アニメーションを保存することは可能ですか?
たとえば、あるテーブルで Y by X にフィットし、データ フィルター アニメーションを使用するとします。 アニメーション/クリップを保存することは可能でしょうか?
ありがとう!
ここでは、データ フィルターを使用してアニメーション GIF を保存する別の例を見つけることができます。データ フィルター アニメーションをアニメーション GIF として保存する。
Windows で JMP 13 を使用している場合は、新しい JSL 機能を使用してアニメーション GIF を作成し、データ フィルター アニメーションを保存できます。
以下は、ローカル データ フィルターを使用してグラフ ビルダーを作成し、アニメーション GIF を保存して開く例です。 詳細については、こちらをご覧ください@ジョンポンテさんのバブル プロットを使用したアニメーション GIF について投稿する。 以下のスクリプトでは、彼のハリケーンの例から多くのコードを借用しました。 理論的には、「report = Current Report()」行で始まるすべてを実行すると、現在開いているウィンドウでこれが機能します。
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 ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
Local Data Filter(
Add Filter(
columns( :age ),
Where( :age == 12 ),
Display( :age, Size( 202, 114 ), List Display )
)
)
);
report = Current Report();
ldf_listBox = report[ListBoxBox(1)];
numLevels = NItems(ldf_ListBox << Get ITems);
// Create a new image, same size as the graph we are going to capture
graphFrame = report[FrameBox(1)] << getPicture();
{w, h} = graphFrame << getSize();
img = newImage(w, h);
for(i=1,i<=numLevels,i++,
// deselect old selection
selectedItems = ldf_listBox << Get Selected Indices;
for(k=1,k<=nitems(selectedItems),k++,
ldf_listBox << set selected(selectedItems[k],0);
);
// set the next item selected
ldf_listBox << set selected(i);
wait(0); // wait for the display to update
// Capture frame for current graph and save to animated image
graphFrame = report[FrameBox(1)] << getPicture();
{r, g, b} = graphFrame << getPixels("rgb");
img << addFrame();
img << setFrameDuration(1000); // Time between frames, in ms
img << setPixels("rgb", {r, g, b});
wait(0.5); // for demonstration purposes
);
// Remove inital blank frame
img << removeFrame(0);
// Write out animated image
img << saveImage ("$temp\animated.gif", gif);
// open the gif
open("$temp\animated.gif");
編集して、結果の GIF ファイルを追加します。
Resulting animated gifResulting animated gif結果として得られるアニメーション GIF