0

I have a script for generate various png files. How could I make a movie from this dataset?

set terminal pngcairo# size 350,262 enhanced font 'Verdana,10'
filename(n) = sprintf("frame_%d.dat", n)
set nokey
set xrange [0:102]
set yrange [0:102]
set style line 1 \
linecolor rgb '#0060ad' \
pointtype 4 pointsize 1.5
set style line 2 \
linecolor rgb '#dd181f' \
pointtype 4 pointsize 1.5
set style line 3 \
linecolor rgb '#0f181f' \
pointtype 4 pointsize 1.5
do for [t=1:10] {
set output sprintf('frame_%d.png',t) plot filename(t) index 0 using 1:2 w p ls 1,
'' index 1 using 1:2 w p ls 2,
'' index 2 using 1:2 w p ls 3 }

  • you can use ffmpeg to encode a set of images into a video - see https://stackoverflow.com/a/24966617/1569675 – Offbeatmammal Jul 31 '20 at 00:28
  • 1
    You don't specify what output format you want. gnuplot can do animated gif directly. Check `help gif`. There is the option `animate`. See e.g. https://stackoverflow.com/q/61715139/7295599 – theozh Jul 31 '20 at 04:20

0 Answers0