Hello, I am using numpy 1.0b2 + matplotlib 0.87.4 from Andrew Straw repository for Ubuntu (http://debs.astraw.com/).
I am playing with some images to present the Theorem of Best Approximation associated to SVD to my students. I have computed a small approximated image and I want to plot it using imshow from matplotlib, but this command presenting a weird behavior with some weird spots in brigh regions. If I convert the array to a Numeric array and show it with the view command from NumTut package (the Numeric tutorial) the picture shows correctly. Did I find a bug? To see what I mean, you can download the following small data file (saved with "tofile" in a i386 systems, it may not work in different architectures). http://www.ime.usp.br/~pjssilva/spot Now run the following script (you need matplotlib, numpy, Numeric and NumTut packages): -- script -- import pylab, numpy, Numeric from NumTut import view win = numpy.fromfile('spot').reshape((50,50,3)) pylab.imshow(win) pylab.show() view(Numeric.array(win)) raw_input('Press enter to finish') -- end script -- You should see two big green spots when the image is presented using matplotlib. Best, Paulo Obs: I am not ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel