| |
XX, YY = np.meshgrid(x_angle, y_period) # 首先生成meshgrid
fig = plt.figure()
plt.pcolor(YY, XX, absp) # 绘制 x自变量,y自变量,和函数absp
plt.colorbar()
plt.axis([300, 900, 0, 85.5]) # 设置图像范围
plt.xlabel('Grating Period $ \Lambda $ (nm)', fontsize = 15)
plt.ylabel('Incident Angle ($ \circ $)', fontsize = 15)
plt.rc('xtick', labelsize = 15)
plt.rc('ytick', labelsize = 15)
plt.show()