avm99963 | 802583e | 2022-05-12 10:56:56 +0200 | [diff] [blame] | 1 | #!/usr/bin/env -S gnuplot -c |
| 2 | outputfile = 'out_data/diferent_t' # Nom de la imatge resultant (sense extensió) |
| 3 | datafilepre = 'out_data/SIM-L-32-TEMP-' |
| 4 | datafilepost = '-MCTOT-10000.out' |
| 5 | L=32 |
| 6 | TEMPS="1500 1800 2500 3500 4500" |
| 7 | |
| 8 | set terminal svg dashed size 600, 1200 font "Computer Modern,Tinos,Helvetica,15" |
| 9 | set output outputfile.'.svg' |
| 10 | |
| 11 | set key outside top horizontal |
| 12 | set multiplot layout 2,1 |
| 13 | |
| 14 | set title "Energia" |
| 15 | plot for [T in TEMPS] datafilepre . T . datafilepost using 1:($2/(L*L)) with lines title "T = ".T." mK" |
| 16 | set title "Magnetització" |
| 17 | plot for [T in TEMPS] datafilepre . T . datafilepost using 1:($3/(L*L)) with lines title "T = ".T." mK" |