avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 1 | #!/usr/bin/env -S gnuplot -c |
Adrià Vilanova Martínez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame^] | 2 | outputfile = 'data_out/dep_en_L_graphs/' # Nom de la imatge resultant (sense extensió) |
| 3 | datafilepre = 'data_out/dep_en_L/tmpdata/' |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 4 | datafilepost = '.dat' |
Adrià Vilanova Martínez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame^] | 5 | LS = ARG1 |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 6 | |
Adrià Vilanova Martínez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame^] | 7 | set terminal svg dashed size 600, 600 font "Computer Modern,Tinos,Helvetica,15" |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 8 | |
| 9 | set title "Capacitat calorífica" |
Adrià Vilanova Martínez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame^] | 10 | set output outputfile.'_capacitat_calorifica.svg' |
| 11 | plot for [L in LS] datafilepre . L . datafilepost using 2:10 with linespoints title "L = ".L |
| 12 | |
avm99963 | 45a8a46 | 2022-06-04 12:41:03 +0200 | [diff] [blame] | 13 | set title "Susceptibilitat magnètica" |
Adrià Vilanova Martínez | c102e96 | 2022-06-04 23:53:44 +0200 | [diff] [blame^] | 14 | set output outputfile.'_susceptibilitat_magnetica.svg' |
| 15 | plot for [L in LS] datafilepre . L . datafilepost using 2:11 with linespoints title "L = ".L |
| 16 | |
| 17 | set title "Energia" |
| 18 | set output outputfile.'_energia.svg' |
| 19 | set key bottom right |
| 20 | plot 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 | |
| 23 | set title "Magnetització" |
| 24 | set output outputfile.'_magnetitzacio.svg' |
| 25 | set key top right |
| 26 | plot 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 |