Clean up scripts

This commit is contained in:
Cory Balaton 2023-11-21 11:22:48 +01:00
commit 4bed658b50
No known key found for this signature in database
GPG key ID: 3E5FCEBFD80F432B
4 changed files with 77 additions and 67 deletions

View file

@ -2,12 +2,16 @@ import matplotlib.pyplot as plt
def plot_from_file():
files = [
"output/burn_in_time_1_0.txt",
"output/burn_in_time_2_4.txt",
"output/burn_in_time/unordered_1_0.txt",
"output/burn_in_time/ordered_1_0.txt",
"output/burn_in_time/unordered_2_4.txt",
"output/burn_in_time/ordered_2_4.txt",
]
labels = [
"1.0",
"2.4"
"1.0, unordered",
"1.0, ordered",
"2.4, unordered",
"2.4, ordered"
]
figure1, ax1 = plt.subplots()
figure2, ax2 = plt.subplots()
@ -25,8 +29,8 @@ def plot_from_file():
energy.append(float(items[1]))
magnetization.append(float(items[5]))
ax1.plot(t, energy, label=f"<epsilon> {label}")
ax2.plot(t, magnetization, label=f"<|m|> {label}")
ax1.plot(t, energy, label=fr"$\langle \epsilon \rangle$ {label}")
ax2.plot(t, magnetization, label=fr"$\langle | m | \rangle$ {label}")
figure1.legend()
figure1.savefig("../latex/images/burn_in_time_energy.pdf")