spy()以图片的方式表示系数矩阵
Demo
import matplotlib.pyplot as pltimport numpy as npa = 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()
本文共 281 字,大约阅读时间需要 1 分钟。
spy()以图片的方式表示系数矩阵
Demo
import matplotlib.pyplot as pltimport numpy as npa = 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()
转载于:https://www.cnblogs.com/zhangshilin/p/7259227.html