You can choose the kind of interpolation that gets used:

               * interpolation is one of:

                 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
                 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
                 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc',
                 'lanczos', 'blackman'

                 if interpolation is None, default to rc
                 image.interpolation.  See also th the filternorm and
                 filterrad parameters

If you don't want interpolation at all, just solid filled squares, then 
use interpolation='nearest'.

Eric

Christian Lerrahn wrote:
> Hi,
> I'm plotting some 2D grid data using imshow(). However, one of my test
> problems involves a Gaussian peak in the center of my grid. For some
> strange reason this Gaussian looks like 5 distinct peaks. It looks like
> the values are only set at the centers of my grid cells and then the
> colour gradients are interpolate from this central point and a
> background.
> You can have a look at the original plot and a magnified one at
> 
> http://www.maths.monash.edu.au/~clerrahn/gaussian1.png
> http://www.maths.monash.edu.au/~clerrahn/gaussian2.png
> 
> Cheers,
> Christian
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to