Ciao, sono abbastanza nuovo in JMP e ho una domanda: è possibile salvare l'animazione?
Ad esempio, se eseguo Adatta Y per X su una tabella e quindi utilizzo l'animazione del filtro dati. Sarebbe possibile salvare l'animazione/clip?
Grazie!
Puoi trovare un altro esempio di salvataggio di una GIF animata con un filtro dati qui: Salva un'animazione di filtro dati come GIF animata .
Se utilizzi JMP 13 su Windows, puoi utilizzare la nuova funzionalità JSL per la creazione di GIF animate per salvare l'animazione del filtro dati.
Di seguito è riportato un esempio che creerà un Generatore di grafici con un filtro dati locale e verrà salvata e aperta una GIF animata. Per maggiori informazioni, dai un'occhiata @Giovanni Ponte 'S post su GIF animate utilizzando Bubble Plot . Ho preso in prestito molto codice dal suo esempio di uragani nello script qui sotto. Teoricamente, questo può funzionare su una finestra corrente che hai aperto se esegui tutto ciò che inizia con la riga "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");
Modificato per aggiungere il file GIF risultante:
Resulting animated gif Gif animata risultante