|
From: Pierre H. <pie...@cr...> - 2012-10-09 15:17:35
|
Hi, Le 09/10/2012 16:37, Warren Weckesser a écrit : > > That's strange. `imshow(img, interpolation='nearest')` works for me. > I'm not sure I understand well the subtle difference between 'nearest' and 'none' interpolations, but I found in this commit https://github.com/jkseppan/matplotlib/commit/6923c7f04fbafa23766250d710cc6b37373c816f a PDF file (interp_nearest_vs_none.pdf) which compares the output of imshow with these two different settings. It seems there is a difference in where the boundaries of pixels are... Maybe somebody familiar with this 'nearest' and 'none' topic could edit the interpolation example ? (http://matplotlib.org/examples/pylab_examples/image_interp.html) Best, Pierre |