IDL 7: Window blanks while waiting for input from the workbench [message #75013] |
Mon, 14 February 2011 12:38 |
Jared Espley
Messages: 17 Registered: February 2006
|
Junior Member |
|
|
My apologies if this is known problem with a known solution but some
searching didn't turn up anything.
When using the IDL workbench in 7.0 or 7.1 on Windows XP, I have the
following problem. My code enters in a repeat-while loop and within
that loop plots something and then gives a command line prompt back to
the user. The plot turns out fine but as soon as I click on something
else besides the plot window (e.g. the workbench window), the plot
turns blank. When I quit the code, then the plot window has its data
restored. I've toyed with the retain keyword in plot but this did not
solve the problem.
Here is some code to reproduce the problem:
input=''
repeat begin
read, input, prompt='Enter something'
plot, [1,0], [0,1]
endrep until input EQ 'quit'
end
Thanks,
Jared
|
|
|