def plotHeatMap(df, psize=(8,8), filename='Heatmap'):
ax = sns.heatmap(df, vmax=.85, square=True, cbar=False, annot=True)
plt.xticks(rotation=40), plt.yticks(rotation=360)
fig = ax.get_figure()
fig.set_size_inches(psize)
fig.savefig(filename)
plt.clf()
评论列表
文章目录