>
> import numpy as np
> import matplotlib as mpl
> import matplotlib.pyplot as plt
>
> image = np.random.rand(5,5)
>
> plt.figure()
> plt.pcolor(image)
> plt.title('pcolor defaults')
>
> plt.figure()
> plt.imshow(image, origin='lower')
> plt.title('imshow defaults with origin=lower')
>
> plt.show()
>
> Is there a method to force imshow to not resample the image
> It is not obvius to me from reading the help for imshow and pcolor.
>

pass in interpolation='nearest' as a keyword argument.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to