imshow绘制热图
#输入数据为pandas数据框
from matplotlib import pyplot as plt
#! figure size
fig,ax=plt.subplots(figsize=(10,8))
#! theme chose
im=ax.imshow(spearmanr_dataFrame)添加图例
#添加图例
fig.colorbar(im,shrink=0.5)Last updated
#输入数据为pandas数据框
from matplotlib import pyplot as plt
#! figure size
fig,ax=plt.subplots(figsize=(10,8))
#! theme chose
im=ax.imshow(spearmanr_dataFrame)#添加图例
fig.colorbar(im,shrink=0.5)Last updated