blob: c83fa5f6e4bf893cd0af70190382be94253e960b [file] [log] [blame]
Adrià Vilanova Martínez24d87012022-06-16 00:29:59 +02001#!/usr/bin/env -S gnuplot -c
2outputfile = 'confs' # Nom de la imatge resultant (sense extensió)
3datafilepost = '.conf'
4TS = ARG1
5L = ARG2
6
7do 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}