🔥AI副业赚钱星球

点击下面图片查看

郭震AI

导入库

编辑日期: 2024-11-28 文章阅读:

@author jackzhenguo
@desc
@tag
@version 
@date 2020/02/11
import seaborn as sns
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

data = np.random.random((6,6))
np.fill_diagonal(data,np.ones(6))
features = ["prop1","prop2","prop3","prop4","prop5", "prop6"]
data = pd.DataFrame(data, index = features, columns=features)
print(data)
heatmap_plot = sns.heatmap(data, center=0, cmap='gist_rainbow')
plt.show()

上一个例子 下一个例子

京ICP备20031037号-1