Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-11 Thread Eric Firing
On 2012/10/10 3:07 AM, Anand Sivaramakrishnan wrote: > Thanks for the many useful responses - I eventuallyfound by experiment > that imshow( interpolation='nearest' works *if* I write a png file. > Saving a pdf file mushed up my crisp pixel boundaries. However, saving > as png, then using (mac os

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-10 Thread Anand Sivaramakrishnan
Thanks for the many useful responses - I eventuallyfound by experiment that imshow( interpolation='nearest' works *if* I write a png file. Saving a pdf file mushed up my crisp pixel boundaries. However, saving as png, then using (mac osx) preview to convert to pdf worked fine. Go figure()! I

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Pierre Haessig
Hi, Le 09/10/2012 16:37, Warren Weckesser a écrit : > > That's strange. `imshow(img, interpolation='nearest')` works for me. > I'm not sure I understand well the subtle difference between 'nearest' and 'none' interpolations, but I found in this commit https://github.com/jkseppan/matplotlib/commit

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Warren Weckesser
On Tue, Oct 9, 2012 at 10:11 AM, Anand Sivaramakrishnan wrote: > I ask having trouble getting imshow to plot e.g. a detector image > showing pixels as little rectangular or square uniform color blocks - > imshow seems to want to interpolate or smooth the image. > Using imshow("nearest") still pro

Re: [Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Benjamin Root
On Tue, Oct 9, 2012 at 10:11 AM, Anand Sivaramakrishnan wrote: > I ask having trouble getting imshow to plot e.g. a detector image > showing pixels as little rectangular or square uniform color blocks - > imshow seems to want to interpolate or smooth the image. > Using imshow("nearest") still pro

[Matplotlib-users] trouble switching off smoothing in imshow()

2012-10-09 Thread Anand Sivaramakrishnan
I ask having trouble getting imshow to plot e.g. a detector image showing pixels as little rectangular or square uniform color blocks - imshow seems to want to interpolate or smooth the image. Using imshow("nearest") still produces a 'soft' image. I have solved this problem earlier using figimag