seaborn 热力图
程序员文章站
2022-07-14 10:06:01
...
import seaborn as sns
path1 = 'a.npy'
b = np.load(path1) # (n, 3)
b= np.reshape(b,(8,8))
sns.heatmap(rank,cmap=cm.coolwarm,annot=True)
plt.axis('off')
plt.savefig('b.png')
效果