Gif
Code to generate a gif from a file with matrices with a space line between then.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set terminal gif animate delay 1
set output 'loner.gif' #compilar: gnuplot oi.sh
set key bottom
stats 'loner.dat' nooutput
set autoscale keepfix
set palette model RGB
unset colorbox
unset border
unset xtics
unset ytics
set palette defined ( 0 "purple", 1 "black", 2 "white")
set cbrange[0:2]
set size square
set xrange [0:100]
set yrange [0:100]
#do for [i=0:int(STATS_blocks)] {
#i=0:12 plota 13 matrizes
do for [i=0:500] {
plot 'loner.dat' index (i) matrix with image;
}
This post is licensed under CC BY 4.0 by the author.