Gif Animation in Gnuplot -


i have data file separated 2 lines. each section of data ~50 lines. i'm trying make .gif file. know how plot them individually or in group can't .gif work.

my problem similar 1 worked out glen maclachlan in youtube channel, part 5. instead of 1 point, have ~50 data points each data section. solves problem utilizing $index feature, , tried same mine doesn't work.

what missing? have plot data separately .png files , group them .gif file?

what i've done:::

i edited data file. there 2 columns x, , y. now, have them in 2nd , 3rd column, , first column index 0 50. each block of data has similar index.

bash script create plot file

for ((i=0;i < 50; i++)) echo "plot 'data.txt'  u 2:3 w circles index $i"; done >>simulate.plt 

it plots data points

why don't show have tried?

the following should work fine:

set terminal gif animate delay 100 set output 'foobar.gif' stats 'datafile' nooutput set xrange [-0.5:1.5] set yrange [-0.5:5.5]  [i=1:int(stats_blocks)] {     plot 'datafile' index (i-1) circles } 

with file datafile:

0 1   2 3   4 5 

gives

enter image description here


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -