|
From: Tommy G. <tg...@ma...> - 2007-01-23 18:20:37
|
I have a program that enters a while loop, calculates a bunch of
arrays and then plots
a figure. The user then looks at the figure and is asked wether the
result is ok. If the
answer is no, then the calculations are redone and the figure
replotted. If the answer is
yes then it exits the loop.
import pylab as p
end = False
while not end:
(x,y,z) = calculate_arrays()
figure(1)
subplot(211)
plot(x,z)
subplot(212)
plot(x,y)
draw()
end = confirm("is the plot ok?")
clf()
However using the draw() command does not display the figure. How do
I do this?
I am using Tkagg with numpy on a Mac OS X.
Cheers
Tommy
|