Re: [Matplotlib-users] Ploting a sparse matrix with imshow

2012-02-19 Thread Jerzy Karczmarczuk
Jeff Whitakert : Jose Guzman: ... >>> 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 ar

Re: [Matplotlib-users] Ploting a sparse matrix with imshow

2012-02-19 Thread Jeff Whitaker
On 2/19/12 1:18 PM, Jose Guzman wrote: 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

Re: [Matplotlib-users] Ploting a sparse matrix with imshow

2012-02-19 Thread Eric Firing
On 02/19/2012 10:18 AM, Jose Guzman wrote: > 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,1

[Matplotlib-users] Ploting a sparse matrix with imshow

2012-02-19 Thread Jose Guzman
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 lik