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

minor plt adjustments

parent 64b80b6b
Pipeline #466901 passed with stage
in 55 seconds
......@@ -83,11 +83,12 @@ def try_all_configs(n_configs):
phi_theory = np.linspace(0, 360/n_configs*(n_configs-1), n_configs*100)
theory = -np.cos(2 * phi_theory * (2 * np.pi / 360))
plt.figure()
plt.xlabel(r'$\Delta \varphi$')
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1 x_2>$')
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')
#plt.savefig('correlation.pdf')
plt.savefig('correlation.pdf')
if showPlots:
plt.show()
plt.close()
......@@ -95,13 +96,13 @@ def try_all_configs(n_configs):
# product of expectation values
line = np.zeros(phi_theory.shape)
plt.figure()
plt.xlabel(r'$\Delta \varphi$')
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1><x_2>$')
plt.ylim([-1, 1])
plt.xticks([0, 45, 90, 135, 180, 225, 270, 305, 360])
plt.plot(phi_theory, line, '.', markersize=1, color='orange')
plt.plot(phi, E_1[:, 0]*E_2[:, 0], 'o', color='blue')
#plt.savefig('expectation_value.pdf')
plt.savefig('expectation_value.pdf')
if showPlots:
plt.show()
plt.close()
......@@ -111,11 +112,12 @@ def try_all_configs(n_configs):
phi_theory = np.linspace(0, 360/n_configs*(n_configs-1), n_configs*100)
theory = -np.cos(2 * phi_theory * (2 * np.pi / 360))
plt.figure()
plt.xlabel(r'$\Delta \varphi$')
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1 x_2>$')
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')
#plt.savefig('correlation.pdf')
plt.savefig('correlation_coinc.pdf')
if showPlots:
plt.show()
plt.close()
......@@ -123,13 +125,13 @@ def try_all_configs(n_configs):
# product of expectation values
line = np.zeros(phi_theory.shape)
plt.figure()
plt.xlabel(r'$\Delta \varphi$')
plt.xlabel(r'$\Delta \varphi$ [°]')
plt.ylabel(r'$<x_1><x_2>$')
plt.ylim([-1, 1])
plt.xticks([0, 45, 90, 135, 180, 225, 270, 305, 360])
plt.plot(phi_theory, line, '.', markersize=1, color='orange')
plt.plot(phi, E_1[:, 1]*E_2[:, 1], 'o', color='blue')
#plt.savefig('expectation_value.pdf')
plt.savefig('expectation_value_coinc.pdf')
if showPlots:
plt.show()
plt.close()
......
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