标签:hot less upper 颜色 origin 技术分享 ati rest plot
可选的配色方案:
常用的几个:
cm=‘Spectral‘ #hot bone cool copper gray hsv inferno jet magma pink plasma summer viridis bwr ocean rainbow coolwarm Spectral......................
norm = matplotlib.colors.Normalize(vmin=min, vmax=max)
map=plt.imshow(plt_arr,interpolation=‘nearest‘,cmap=cm,norm=norm, origin=‘upper‘) # plt_arr是要显示的数据
mydpi=1000
plt.savefig("filename.png", dpi=mydpi ,bbox_inches=‘tight‘, pad_inches=0) # ,bbox_inches=‘tight‘ less white area
plt.show()
图像实例:
hsv
hot
cool
rainbow
gist_earth
标签:hot less upper 颜色 origin 技术分享 ati rest plot
原文地址:https://www.cnblogs.com/dzzy/p/9233212.html