import matplotlib.pyplot as plt
import pandas as pd
import seaborn as snsplt.figure(figsize=(15, 10))sns.heatmap(data,cmap='Reds',annot=True,fmt='d').get_figure().savefig("temp.png",dpi=500,bbox_inches = 'tight') # fmt显示完全,dpi显示清晰,bbox_inches保存完全plt.show()