1 Jul 2006 19:57
Big slowdown showing PNG images
Hello. I had a piece of code working perfectly fine with matplotlib 0.87.2. Now I updated to 0.87.3 and it is about 100 times slower (!). The code shows a PNG image using axes.imshow. <code> from pylab import * from time import asctime, time import Image PNG_file='foo.png' fh=figure() ax = fh.add_subplot(111) print 'Image intepolation = %s' % rcParams['image.interpolation'] print 'Image aspect = %s' % rcParams['image.aspect'] print 'Date/Time = %s' % asctime() t1=time() print "Starting Image.open" image = Image.open(PNG_file) print "Image.open terminated" print "Starting imshow" ax.imshow(image, origin='lower') print "imshow terminated" setp(ax.get_xticklabels(), visible=False)(Continue reading)
RSS Feed