Hi,

If I display a simple matrix with imshow(), e.g:

a = zeros((3,3))
a[0,0] = 1
imshow(a,interpolation='nearest')

the axes extend from 0.0 to 3.0 in such a way that elements are centered 
at 0.5, 1.5,...  For example, the point at (x,y)=(.9,.9) is red, whereas 
nearest-interp. should give a[1,1]=0.  Would it make more sense for the 
default to be like this (as is in matlab): ?

imshow(a,interpolation='nearest',extent=(-0.5, 2.5, -0.5, 2.5))

Is there a way to get behavior this automatically?

Thanks,
Ken

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to