On Jan 23, 2007, at 1:28 PM, Darren Dale wrote:
> On Tuesday 23 January 2007 13:20, Tommy Grav wrote:
>> 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()
>> end = confirm("is the plot ok?")
>> However using the draw() command does not display the figure. How do
>> I do this?
> try "show()"
While show() does display the figure it does not work for me as it
up the script, so it never makes it to the end = confirm() line.