【发布时间】:2016-04-04 12:56:37
【问题描述】:
我在我的天体物理学实习项目中创建了一个基于噪声图的信号,但我的子图有点问题,因为不是为每个热图获得一个颜色条,而是像这样通过热图获得 3 个颜色条:
这是我的脚本(希望它可以理解):
# VERIFICATION DE LA CARTE S/N
# convolution_X and convolution_mask_X are arrays
fig10 = plt.subplot(1,3,1)
step1 = convolution_locale - convolution_mask_locale
fig_step1 = plt.imshow(step1, interpolation='nearest')
plt.colorbar()
plt.xlabel("X (arcmin)")
plt.ylabel("Y (arcmin)")
fig10 = plt.subplot(1,3,2)
step2 = convolution_grande - convolution_mask_grande
fig_step2 = plt.imshow(step2, interpolation='nearest')
plt.colorbar()
plt.xlabel("X (arcmin)")
plt.ylabel("Y (arcmin)")
fig10 = plt.subplot(1,3,3)
S_N_map = step1 - step2
fig_S_N_map = plt.imshow(S_N_map, interpolation='nearest')
plt.colorbar()
plt.xlabel("X (arcmin)")
plt.ylabel("Y (arcmin)")
fig10 = plt.savefig(outname10)
您需要更多关于数组的信息吗?
如果你有想法,谢谢!
【问题讨论】:
-
也许你会在展示数字之前做出改变,但以防万一:请帮助对抗 Jet 颜色图,尤其是在物理方面。 jakevdp.github.io/blog/2014/10/16/how-bad-is-your-colormap
标签: python arrays numpy matplotlib