Re: [Matplotlib-users] default imshow extent

2006-11-13 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> Some discussion (and/or a ruling by John) is needed. My Eric> preference is that if a change is made, it be a change in Eric> basic default behavior, not additional options, because any Eric> non-default behavior can be

Re: [Matplotlib-users] default imshow extent

2006-11-12 Thread Eric Firing
Ken Schutte wrote: > 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, whe

[Matplotlib-users] default imshow extent

2006-11-12 Thread Ken Schutte
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