raw input and buffering

Hello,

I tried to retype python programs from xplt to matplotlib.
What is necessary some times is to plot some curves one after another
seperated by raw_input().
Unfortunately the figures seem not to be buffered correctly. Here is a
little example:

···

#---------------------------------------------------------
from pylab import *
ion() # interactive mode
x = arange(10)
plot(x,x*x) # ad something to the plot
draw() # draw it
raw_input("During this time the plot is not refreshed when \
temporarily overlapped by another window.") # wait for user
#---------------------------------------------------------

Is there a way to get the buffer working again?

Thanks a lot,
Martin

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++