|
From: Jose G. <sjm...@go...> - 2012-02-19 20:20:06
|
Dear matplotlib users, I am trying to plot a nxn symetric matrix containing zeros (in white) and ones (in black). Quite simple, I guessed. For that I use imshow as follows: >>> imshow(W, cmap=cm.binary) # W is a Numpy Array with shape (100,100) However, this does not work the way i would like (the ones appear very blur). I would need the correct representation of a grid where the possition 0,0 is simply the entry W[0,0] of my array. There should be an easy way to plot this matrix, bu I cannot figure it out. Thanks for your help in advance. Jose |