def plot_eigen_function(ax, se, n, psi1l, psi1r):
# plt.figure(figsize=(8, 8))
for x in range(se.info['L']):
for y in range(se.info['W']):
i = x + y * se.info['L']
w = np.sqrt(10) * np.abs(psi1r[i, n])
arg = np.angle(psi1r[i, n])
circle = plt.Circle((x, y), w, color='black', zorder=10)
ax.add_artist(circle)
ax.plot([x, x + w * np.cos(arg)], [y, y + w * np.sin(arg)], color='white', lw=.8, zorder=12)
ax.set_xlim([-.5, se.info['L'] - .5])
ax.set_ylim([-.5, se.info['W'] - .5])
# plt.show()
评论列表
文章目录