Commit dadbbb16 authored by Tobias Jörg Theodor Kempe's avatar Tobias Jörg Theodor Kempe
Browse files

adjusts latex symbols in plot axes

parent c37e98af
Pipeline #467021 passed with stage
in 57 seconds
......@@ -50,6 +50,7 @@ def simulate(phi1, phi2):
# computes expectancy values for x1*x2, x1 and x2
E_all = np.sum(counts, axis=1).astype(float)
print(E_all)
E_12 = (counts[:, 0] - counts[:, 1] - counts[:, 2] + counts[:, 3]).astype(float)
E_1 = (counts[:, 0] + counts[:, 1] - counts[:, 2] - counts[:, 3]).astype(float)
E_2 = (counts[:, 0] - counts[:, 1] + counts[:, 2] - counts[:, 3]).astype(float)
......@@ -84,7 +85,7 @@ def try_all_configs(n_configs):
theory = -np.cos(2 * phi_theory * (2 * np.pi / 360))
plt.figure()
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1 x_2>$')
plt.ylabel(r'$\left<x_1 x_2\right>$')
plt.xticks([0, 45, 90, 135, 180, 225, 270, 305, 360])
plt.plot(phi_theory, theory, '.', markersize=1, color='orange')
plt.plot(phi, E_12[:, 0], 'o', color='blue')
......@@ -97,7 +98,7 @@ def try_all_configs(n_configs):
line = np.zeros(phi_theory.shape)
plt.figure()
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1><x_2>$')
plt.ylabel(r'$\left<x_1\right>\left<x_2\right>$')
plt.ylim([-1, 1])
plt.xticks([0, 45, 90, 135, 180, 225, 270, 305, 360])
plt.plot(phi_theory, line, '.', markersize=1, color='orange')
......@@ -113,7 +114,7 @@ def try_all_configs(n_configs):
theory = -np.cos(2 * phi_theory * (2 * np.pi / 360))
plt.figure()
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1 x_2>$')
plt.ylabel(r'$\left<x_1 x_2\right>$')
plt.xticks([0, 45, 90, 135, 180, 225, 270, 305, 360])
plt.plot(phi_theory, theory, '.', markersize=1, color='orange')
plt.plot(phi, E_12[:, 1], 'o', color='blue')
......@@ -126,7 +127,7 @@ def try_all_configs(n_configs):
line = np.zeros(phi_theory.shape)
plt.figure()
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1><x_2>$')
plt.ylabel(r'$\left<x_1\right>\left<x_2\right>$')
plt.ylim([-1, 1])
plt.xticks([0, 45, 90, 135, 180, 225, 270, 305, 360])
plt.plot(phi_theory, line, '.', markersize=1, color='orange')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment