I have a series of data files and I just simply want to show them in a movie file where for each data file color, legends will change. So I tried something like below:
for i in *dat; do gracebat $i -batch setup.batch -printfile fig-$i.png -hdevice PNG -hardcopy; done
after that I use usual convert
command to make a movie out of the PNG files using:
convert -delay 50 fig-*.png animation.gif
This produces a movie like below:
Now I want to change the colour and as well as legend in each frame according to the data point. I know there needs to be changed something in the
setup.batch
file but I couldn't figure it out what should I write there? Can anyone please help me a bit?
The setup.batch
file looks like:
TITLE "Energy barrier"
WORLD XMIN 0
WORLD XMAX 2
WORLD YMIN 0
WORLD YMAX 0.6
XAXIS TICK MAJOR 0.5
XAXIS TICK MINOR 0.25
YAXIS TICK MAJOR 0.1
YAXIS TICK MINOR 0.05
s0 LINE LINEWIDTH 2.0
It would be really helpful if someone has idea about keeping the plots in each frame instead of showing only one plot at a frame. As an example, now it shows only one line at each step but what would be the way If I keep the previous plots so then at the 8th frame I can shown all the 8 plots?