Re: IDL 7: Window blanks while waiting for input from the workbench [message #75011] |
Mon, 14 February 2011 13:54  |
James[2]
Messages: 44 Registered: November 2009
|
Member |
|
|
On Feb 14, 12:38 pm, Jared Espley <jesp...@gmail.com> wrote:
> 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
I ran this code from the Workbench command line in IDL 8.0 on Windows
XP-64. If the Workbench is maximized, I cannot even click on the plot
window in the taskbar to bring it forward and look at the plot. It
becomes usable after I type 'quit'. However, if I make the Workbench
smaller so I can see the Direct Graphics window behind it, the plots
work fine and do not go blank when I click inside the Workbench.
|
|
|