Re: [Matplotlib-users] imshow smoothing
On Tue, Sep 22, 2009 at 3:45 PM, Michael Hearne wrote: > Great! You may also want to take a look at the brand-spanking-new image tutorial, which covers this http://matplotlib.sourceforge.net/users/image_tutorial.html JDH -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] imshow smoothing
Great! Thanks, Mike On Sep 22, 2009, at 2:38 PM, Gary Ruben wrote: > 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') -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] imshow smoothing
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') -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users