<div dir="ltr">On Fri, Feb 27, 2015 at 10:33 PM, Sturla Molden <<a href="mailto:sturla.molden@gmail.com">sturla.molden@gmail.com</a>> wrote:<br>><br>> Somewhere... But where is it?<br>><br>> NumPy, SciPy, Matplotlib, Cython or ipython?<br>><br>> I am suspecting ipython, but proving it is hard...<br>><br>> <a href="http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/12464039/lenna-bug.ipynb">http://nbviewer.ipython.org/urls/dl.dropboxusercontent.com/u/12464039/lenna-bug.ipynb</a><br><br>When plt.imshow() is given floating point RGB images, it assumes that each channel is normalized to 1. You are mixing a 0..255 image with a 0..1 image. Divide `lenna` by 255.0 before you stack it with `_dct`. Or multiply `_dct` by 255 and cast it to uint8.<br><br>--<br>Robert Kern</div>