raw input and buffering

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

raw input and buffering

Martin Richter

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,

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

SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Matplotlib-users mailing list
[hidden email]