|
From: Gary R. <gr...@bi...> - 2009-09-22 20:38:30
|
Yes. Use interpolation='nearest' instead.
Gary R.
Michael Hearne wrote:
> Running the test script below gives me the image I have attached, which
> looks like it has been smoothed.
>
> Does imshow perform some sort of smoothing on the data it displays? If
> so, is there a way to turn this off?
>
> #!/usr/bin/env python
>
> from pylab import *
>
> data = array([[1,2,3,4],[5,6,7,8]])
> imshow(data,interpolation=None)
> savefig('output.png')
> close('all')
|