Clean up scripts
This commit is contained in:
parent
e91a708e91
commit
4bed658b50
4 changed files with 77 additions and 67 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue