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