Chapter 1-2, revised, parenthesis change

This commit is contained in:
Jonas Kellerer
2021-04-23 10:27:21 +02:00
parent aa36b34534
commit 45aa784a1f
46 changed files with 5051 additions and 3961 deletions
@@ -65,15 +65,15 @@ colors = prop_cycle.by_key()['color']
(width, height) = pltStd.set_size('thesis')
fig, (ax, ax1) = plt.subplots(2, 1, figsize=(width, height),sharex=True)
ax1.set_xlabel(r'Length $z$ [cm]')
ax1.set_xlabel(r'Distance to rear wall $z$ (cm)')
ax1.plot(z, Er[20],"--", label=r'$E_r$', color=colors[1])
ax1.plot(z, Ez[20],"-.", label=r'$E_z$',color=colors[2])
ax1.set_ylabel(r'Eletric Field $E$ [V/cm]')
ax1.set_xlabel(r'Height $z$ [cm]')
ax1.set_ylabel(r'Eletric Field $E$ (V/cm)')
ax1.set_xlabel(r'Distance to rear wall $z$ (cm)')
ax1.legend()
ax.plot(z,potential[20],label=r'$\phi$')
ax.set_ylabel(r'Potential $U$ [V]')
ax.set_ylabel(r'Potential $U$ (V)')
plt.savefig(output_folder+"potential_Er_Ez_vs_z.pdf",bbox_inches='tight')
plt.show()
@@ -92,35 +92,41 @@ X, Y = np.meshgrid(x, y)
cs = ax.contourf(X,Y,potential,cmap=plt.get_cmap('Purples'),levels=10)
cbar = fig.colorbar(cs, ax=ax)
cbar.ax.set_ylabel(r'Potential $U$ [V]')
cbar.ax.set_ylabel(r'Potential $U$ (V)')
ax.set_ylim((0,4.5))
#ax.set_xlim((0,6))
ax.set_ylabel(r'Radius $r$ [cm]')
ax.set_xlabel(r'Height $z$ [cm]')
ax.set_ylabel(r'Radius $r$ (cm)')
ax.set_xlabel(r'Distance to rear wall $z$ (cm)')
plt.savefig(output_folder+"potential_2d.pdf",bbox_inches='tight')
plt.show()
(width, height) = pltStd.set_size('thesis')
fig, (ax0, ax1, ax2) = plt.subplots(3, 1, figsize=(width, height*1.4))
ax2.set_xlabel(r'Length $z$ [cm]')
ax2.set_xlabel(r'Distance to rear wall $z$ (cm)')
ax2.plot(z, Er[20],"--", label=r'$E_r$', color=colors[1])
ax2.plot(z, Ez[20],"-.", label=r'$E_z$',color=colors[2])
ax2.set_ylabel(r'Eletric Field $E$ [V/cm]')
ax2.set_xlabel(r'Height $z$ [cm]')
ax2.set_ylabel(r'Eletric Field $E$ (V/cm)')
ax2.set_xlabel(r'Distance to rear wall $z$ (cm)')
ax2.legend()
ax2.set_xlim((0,18))
ax2.set_facecolor('#e7e7e7ff')
ax2.grid(color='white')
ax1.plot(z,potential[20],label=r'$\phi$')
ax1.set_ylabel(r'Potential $U$ [V]')
ax1.set_ylabel(r'Potential $U$ (V)')
ax1.set_xlim((0,18))
ax1.set_facecolor('#e7e7e7ff')
ax1.grid(color='white')
cs = ax0.contourf(X,Y,potential,cmap=plt.get_cmap('Purples'),levels=10)
ax0.set_xlim((0,14))
ax0.set_ylabel(r'Radius $r$ [cm]')
ax0.set_ylabel(r'Radius $r$ (cm)')
cbar = fig.colorbar(cs, ax=ax0)
cbar.ax.set_ylabel(r'Potential $U$ [V]')
cbar.ax.set_ylabel(r'Potential $U$ (V)')
plt.savefig(output_folder+"potential_Er_Ez_combined.pdf",bbox_inches='tight')
plt.show()