方法:采用seaborn中的heatmap
import seabornimport numpy as npimport pandas as pdimport matplotlib.pyplot as plt new_show=pd.DataFrame(new_show) fig=plt.figure seaborn.heatmap(new_show) plt.show()
效果展示:(截取了图中一部分)