|
From: Daniel J. <law...@gm...> - 2010-06-14 20:32:58
|
Hi matplotlib users, I'm trying to write a script to loop through a bunch of tiff files, display each image, and choose to accept or reject each image. Something like: for f in files: im = imread(f) imshow(im) # Accept keyboard input to accept or reject image # Close the image The problem is that I can't figure out how to show multiple images in series. I can't use matplotlib.pyplot.show() because that can only be used once at the very end of a script, and I don't want to show all the images at once. matplotlib.pyplot.draw() seemed like a promising candidate, but it only seems to work if I've already used show() once in the script. It seems like there should be a simple way to do this, but I can't quite seem to find it. Thanks, Daniel |