1import matplotlib.pyplot
as plt
5 figure, ax = plt.subplots()
7 with open(
"output/2_lattice_test.txt")
as f:
14 items = line.strip().split(
",")
15 t.append(int(items[0]))
16 energy.append(float(items[1]))
17 magnetization.append(float(items[5]))
19 ax.plot(t, energy, label=f
"<epsilon> {label}")
20 ax.plot(t, magnetization, label=f
"<|m|> {label}")
23 figure.savefig(
"../latex/images/2x2_analysis.pdf")
28if __name__ ==
"__main__":
int main()
The main function.