Skip to content

Commit

Permalink
Fix T1_T2_relaxation_rate example
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed May 5, 2024
1 parent 07deffa commit 7225aa9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/T1_T2_relaxation_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def main():
plt.axis("on")
plt.rc("axes", edgecolor="k")
for t in temperatures:
plt.plot(ratio, eta[t] * f, label=f"{t}$^\circ$C")
plt.plot(ratio, eta[t] * f, label=f"{t}$^\\circ$C")
plt.xlabel("Glycerol fraction", size=14)
plt.ylabel("Viscosity ($mN \, s \, m^{-2}$)", size=14)
plt.ylabel(r"Viscosity ($mN \, s \, m^{-2}$)", size=14)
plt.legend()
plt.tick_params(labelsize=14)
path = __file__[:-3] + f"_{0}.png"
Expand All @@ -47,7 +47,7 @@ def main():
plt.axis("on")
plt.rc("axes", edgecolor="k")
for t in temperatures:
plt.plot(ratio, tau_c[t] * f2, label=f"{t}$^\circ$C")
plt.plot(ratio, tau_c[t] * f2, label=f"{t}$^\\circ$C")
plt.xlabel("Glycerol fraction", size=14)
plt.ylabel(r"$\tau _C$ ($\mu s$)", size=14)
plt.legend()
Expand All @@ -73,7 +73,7 @@ def main():
plt.axis("on")
plt.rc("axes", edgecolor="k")
for t in temperatures:
plt.plot(ratio, 1 / t1[t], label=f"{t}$^\circ$C")
plt.plot(ratio, 1 / t1[t], label=f"{t}$^\\circ$C")
plt.xlabel("Glycerol fraction", size=14)
plt.ylabel(r"1 / T1 ($s$)", size=14)
plt.legend()
Expand All @@ -86,7 +86,7 @@ def main():
plt.axis("on")
plt.rc("axes", edgecolor="k")
for t in temperatures:
plt.plot(ratio, 1 / t2[t], label=f"{t}$^\circ$C")
plt.plot(ratio, 1 / t2[t], label=f"{t}$^\\circ$C")
plt.xlabel("Glycerol fraction", size=14)
plt.ylabel(r"1 / T2 ($s$)", size=14)
plt.legend()
Expand Down

0 comments on commit 7225aa9

Please sign in to comment.