Chapter1 half corr., Chapter2 no corr.
This commit is contained in:
+26
-4
@@ -63,8 +63,6 @@ prop_cycle = plt.rcParams['axes.prop_cycle']
|
||||
colors = prop_cycle.by_key()['color']
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
print(width)
|
||||
print(height)
|
||||
fig, (ax, ax1) = plt.subplots(2, 1, figsize=(width, height),sharex=True)
|
||||
|
||||
ax1.set_xlabel(r'Length $z$ [cm]')
|
||||
@@ -82,7 +80,7 @@ plt.show()
|
||||
|
||||
|
||||
(width, height) = pltStd.set_size('thesis')
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height))
|
||||
fig, ax = plt.subplots(1, 1, figsize=(width, height*0.5))
|
||||
|
||||
len_x = np.size(potential,0)
|
||||
len_y = np.size(potential,1)
|
||||
@@ -97,8 +95,32 @@ cbar = fig.colorbar(cs, ax=ax)
|
||||
cbar.ax.set_ylabel(r'Potential $U$ [V]')
|
||||
|
||||
ax.set_ylim((0,4.5))
|
||||
ax.set_xlim((0,6))
|
||||
#ax.set_xlim((0,6))
|
||||
ax.set_ylabel(r'Radius $r$ [cm]')
|
||||
ax.set_xlabel(r'Height $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.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.legend()
|
||||
ax2.set_xlim((0,18))
|
||||
|
||||
ax1.plot(z,potential[20],label=r'$\phi$')
|
||||
ax1.set_ylabel(r'Potential $U$ [V]')
|
||||
ax1.set_xlim((0,18))
|
||||
|
||||
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]')
|
||||
cbar = fig.colorbar(cs, ax=ax0)
|
||||
|
||||
cbar.ax.set_ylabel(r'Potential $U$ [V]')
|
||||
plt.savefig(output_folder+"potential_Er_Ez_combined.pdf",bbox_inches='tight')
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user