标签:import imp src ima logs port show play atp
spy()以图片的方式表示系数矩阵
Demo
import matplotlib.pyplot as plt import numpy as np a = np.array([[0,4,5,6,7], [5,0,6,6,0], [0,4,5,0,7], [1,4,0,6,3], [1,0,5,2,1]]) plt.spy(a) plt.show()
标签:import imp src ima logs port show play atp
原文地址:http://www.cnblogs.com/zhangshilin/p/7259227.html