赞
踩
绘制矩阵颜色图
import matplotlib.pyplot as plt plt.matshow(np.random.rand(5,5), cmap=plt.get_cmap('Greens'), alpha=0.5) # , alpha=0.3plt.show()