Adrià Vilanova Martínez | 24d8701 | 2022-06-16 00:29:59 +0200 | [diff] [blame] | 1 | #!/usr/bin/env -S gnuplot -c |
| 2 | outputfile = 'confs' # Nom de la imatge resultant (sense extensió) |
| 3 | datafilepost = '.conf' |
| 4 | TS = ARG1 |
| 5 | L = ARG2 |
| 6 | |
| 7 | do for [IDX = 0:1] { |
| 8 | if (IDX == 0) { |
| 9 | set terminal cairolatex size 8.5cm, 13cm |
| 10 | set output outputfile.'.tex' |
| 11 | symbsize=0.18 |
| 12 | } else { |
| 13 | set terminal svg dashed size 600, 1000 font "Computer Modern,Tinos,Helvetica,15" |
| 14 | set output outputfile.'.svg' |
| 15 | symbsize=0.3 |
| 16 | } |
| 17 | |
| 18 | set multiplot layout 3,2 |
| 19 | |
| 20 | do for [T in TS] { |
| 21 | set title "T = " . T |
| 22 | set size square |
| 23 | set xrange [0:L+1] |
| 24 | set yrange [0:L+1] |
| 25 | unset xtics |
| 26 | unset ytics |
| 27 | plot T . datafilepost using 1:2 with points pt 5 ps symbsize notitle |
| 28 | } |
| 29 | |
| 30 | unset multiplot |
| 31 | } |