title: Gif Animation in Gnuplot
body: <p>I have a data file separated by two lines. Each section of data is ~50 lines. I'm trying to make a .gif file. I know how to plot them individually or in a group but can't get the .gif to work.</p>
  
  <p>My problem is similar to the one worked out by Glen MacLachlan in his youtube channel, part 5. Instead of 1 point, I have ~50 data points for each data section. He solves the problem by utilizing $index feature, and I tried to do the same but mine doesn't work.</p>
  
  <p>What am I missing? Do I really have to plot the data separately into .png files and group them together to get .gif file?</p>
  
  <p>What I've done:::</p>
  
  <p>I edited the data file. Previously there were two columns x, and y. Now, I have them in 2nd and 3rd column, and the first column is index from 0 to 50. Each block of data has similar index.</p>
  
  <p>bash script to create plot file</p>
  
  <pre><code>for ((i=0;i &lt; 50; i++)) do echo "plot 'data.txt' 
  u 2:3 w circles index $i"; done &gt;&gt;simulate.plt
  </code></pre>
  
  <p>It just plots ALL the data points</p>