Lab fenòmens: afegir informe i ultims canvis al codi

Change-Id: I7f01665996295625fc390f9382dd0ba1c9882bbc
diff --git a/quad10/fenomens/lab/p4/graphs/dependenciaEnSeed.gnu b/quad10/fenomens/lab/p4/graphs/dependenciaEnSeed.gnu
new file mode 100755
index 0000000..be9b69c
--- /dev/null
+++ b/quad10/fenomens/lab/p4/graphs/dependenciaEnSeed.gnu
@@ -0,0 +1,31 @@
+#!/usr/bin/env -S gnuplot -c
+outputfile = 'depEnSeed' # Nom de la imatge resultant (sense extensió)
+datafilepost = '.ev'
+L=32
+SEEDS = ARG1
+L = ARG2
+
+do for [IDX = 0:1] {
+  if (IDX == 0) {
+    set terminal cairolatex size 8.5cm, 11cm
+    set output outputfile.'.tex'
+  } else {
+    set terminal svg dashed size 600, 1200 font "Computer Modern,Tinos,Helvetica,15"
+    set output outputfile.'.svg'
+  }
+
+  set multiplot layout 2,1
+  set key outside top horizontal
+
+  set xlabel "Iteracions MC"
+  set ylabel '$\langle e \rangle$'
+  set yrange [-2:0]
+  plot for [S in SEEDS] S . datafilepost using 1:($2/(L*L)) with lines title sprintf('$S = %s$', S)
+
+  set xlabel "Iteracions MC"
+  set ylabel '$\langle m \rangle$'
+  set yrange [-1:1]
+  plot for [S in SEEDS] S . datafilepost using 1:($3/(L*L)) with lines title sprintf('$S = %s$', S)
+
+  unset multiplot
+}