blob: ec68f46b22f4ff0718e6c3f6c4b2372a3622a275 [file] [log] [blame]
avm9996345a8a462022-06-04 12:41:03 +02001#!/usr/bin/env -S gnuplot -c
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +02002outputfile = 'data_out/dep_en_L_graphs/' # Nom de la imatge resultant (sense extensió)
3datafilepre = 'data_out/dep_en_L/tmpdata/'
avm9996345a8a462022-06-04 12:41:03 +02004datafilepost = '.dat'
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +02005LS = ARG1
avm9996345a8a462022-06-04 12:41:03 +02006
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +02007set terminal svg dashed size 600, 600 font "Computer Modern,Tinos,Helvetica,15"
avm9996345a8a462022-06-04 12:41:03 +02008
9set title "Capacitat calorífica"
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +020010set output outputfile.'_capacitat_calorifica.svg'
11plot for [L in LS] datafilepre . L . datafilepost using 2:10 with linespoints title "L = ".L
12
avm9996345a8a462022-06-04 12:41:03 +020013set title "Susceptibilitat magnètica"
Adrià Vilanova Martínezc102e962022-06-04 23:53:44 +020014set output outputfile.'_susceptibilitat_magnetica.svg'
15plot for [L in LS] datafilepre . L . datafilepost using 2:11 with linespoints title "L = ".L
16
17set title "Energia"
18set output outputfile.'_energia.svg'
19set key bottom right
20plot for [L in LS] datafilepre . L . datafilepost using 2:($3/(L**2)) with linespoints title "<E>/N, L = ".L, \
21 for [L in LS] datafilepre . L . datafilepost using 2:(-sqrt($4)/(L**2)) with linespoints title "-sqrt(<E^2>)/N, L = ".L
22
23set title "Magnetització"
24set output outputfile.'_magnetitzacio.svg'
25set key top right
26plot for [L in LS] datafilepre . L . datafilepost using 2:($7/(L**2)) with linespoints title "<|M|>/N, L = ".L, \
27 for [L in LS] datafilepre . L . datafilepost using 2:(sqrt($8)/(L**2)) with linespoints title "sqrt(<M^2>)/N, L = ".L