alternative to show()? too many figures

Dear ones,

I discovered Matplotlit only yesterday, and it's great. But I've got one
problem. Since I am using the GTK backend, I have to use the show()
function. But I have hundreds of figures and each to be written into a
file. If I put the show() at the end of my program, the machine just
can't handle it. If I put the show() in a loop, then I have close the
hundreds of picture windows by hand. Is there a solution to this

Also the Matplotlib I downloaded doesn't have the file libjpeg.dll in
it. Wonder where can I get it.

Looking forward to hearing some advices from you.

Enjoy the day.