You can pass an "interpolation" parameter to imshow, or set a default in "image.interpolation" in your matplotlibrc. From the imshow docstring:
* 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 'nearest' is the one you want if you want to see sharp square pixels. Søren Nielsen wrote: > Also, if I want to use matplotlib.patches on a canvas where I can > actually see individual pixels, is it possible to only draw on the > available pixels showing, and not just make a nice high resolution > line that is plotted on top of my image? I'm not sure I understand the question. You mean to draw a line using large pixels, rather than as a vector? I don't think there's an easy way on that one -- but maybe someone else here can think of a creative way to do it. Cheers, Mike > > Thanks, > Soren > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users