avm99963 | 3541873 | 2022-04-29 16:46:26 +0200 | [diff] [blame] | 1 | #!/usr/bin/env -S gnuplot -c |
| 2 | outputfile = 'out/configuration' # Nom de la imatge resultant (sense extensió) |
| 3 | datafile = 'out/configuration.conf' # Nom del fitxer de dades que es vol usar |
avm99963 | 9622dc7 | 2022-04-29 15:44:05 +0200 | [diff] [blame] | 4 | L=64 |
| 5 | symbsize=0.6 |
| 6 | |
| 7 | set terminal cairolatex size 10cm, 7cm |
| 8 | set output outputfile.'.tex' |
| 9 | |
| 10 | set size square |
| 11 | set xrange [0.5:L+0.5] |
| 12 | set yrange [0.5:L+0.5] |
| 13 | plot datafile using 1:2 with points pt 5 ps symbsize t "" |
| 14 | |
| 15 | set terminal svg dashed size 600, 600 font "Computer Modern,Tinos,Helvetica,15" |
| 16 | set output outputfile.'.svg' |
| 17 | replot |