有没有办法平滑二维地图?这是我得到的,我想把它弄平。测量步骤太大了,结果是这样的“坏”光谱。。。在
以下是我的部分代码:
X, Y = np.meshgrid(x,y)
fig, ax = plt.subplots()
plt.xlim(235,420)
plt.xticks(np.arange(235,415,30))
plt.yticks(np.arange(0,360,50))
cs = ax.pcolormesh(X,Y,A,cmap=cm.rainbow, vmin = 0)#Greys_r
plt.xlabel('wavelength [nm]')
plt.ylabel('temperature [K]')
plt.title(sample)
cbar = fig.colorbar(cs)
cbar.formatter.set_powerlimits((0, 0))
cbar.update_ticks()
我找到了一个办法。方法如下:
相关问题 更多 >
编程相关推荐