Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试用 matplotlib 绘制特征行为,基本上我有一个 2D 矩阵,并且想用与热图非常相似的东西来绘制它,但是单元格是分开的并且可以识别的。参见例如:
http://www.cl.cam.ac.uk/~nv240/pics/eigenbehaviour.jpg
这就是你所追求的吗?
from pylab import * z = rand(10, 25) c = pcolor(z) set_cmap('hot') colorbar() c = pcolor(z, edgecolors='w', linewidths=1) axis([0,25,0,10]) savefig('plt.png') show()