Hi Daniel,
show should be called only once in a script (see also:
http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=show#use-show)
and it starts the mainloop, in which the user may interact with the plot using
for instance button or key press events like in my second example. Whene
Hi Matthias,
Thanks for the script! Now I would like to try to understand why it
works :) . In both of the scripts you sent me, plt.draw() is called
inside the loop to display each image file, and plt.show() is called
outside the loop at the end of the script. I guess what I find
confusing is, how
On Monday, June 14, 2010 10:32:48 pm Daniel Jones wrote:
> 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)
>#
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 p