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 array.


Jose: I think you need to add interpolation='nearest' to get rid of the blurriness.
A. This is one possibility.
B. The - mentioned previously - matshow, is another one.
C. figimage(W,cmap=cm.binary) is a third one ; here the scale is one to one in pixels, independently of the figsize. D. Specific backend image plotting is yet another one, if somebody needs really to work hard.

Jerzy K.



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to