|
From: Warren W. <war...@en...> - 2012-10-09 15:01:30
|
On Tue, Oct 9, 2012 at 10:11 AM, Anand Sivaramakrishnan <an...@st...>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 produces a 'soft' image.
>
That's strange. `imshow(img, interpolation='nearest')` works for me.
Warren
>
> I have solved this problem earlier using figimage(), but that was a lot
> of work (I had to create a pixel-by-pixel array with all greyscale values
> set myself, and then I was working in pixel coordinates rather than my data
> coordinates). Has anyone figured out how to get imshow to stop smoothing
> the image? Using imshow(… interpolation='none'…) or imshow(…
> interpolation=None…) raise exceptions.
>
> I found NonUniformImage too hard to figure out from the documentation.
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|