+3  A: 

You could use the figure's clf method to clear the figure after you're done with one. Also, pyplot.clf will clear the current figure.

Alternatively, if you just want a new figure then call pyplot.figure without an explicit num argument -- it will autoincrement, so you don't need to keep a counter.

ars
+1, I recommend just leaving out the `num` argument.
David Zaslavsky
That worked great. Thank you. I just needed a new figure so I left out the `num` argument. I didn't know I could do that until now.
yoshi