Re: PLOT() function...which WINDOW() to plot to...? [message #81444 is a reply to message #81352] |
Wed, 12 September 2012 11:59   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
On 09/12/12 11:58, Paul van Delst wrote:
> Hello,
>
> On 09/12/12 11:07, David Fanning wrote:
>> Paul van Delst writes:
>>
>>> I want to create a window, and have everything plot in that window (be
>>> it onscreen or in buffer) regardless of what other graphics windows I
>>> have onscreen that I happen to be looking at and click on.
>>>
>>> I presume there is some magical combination of keywords that will do
>>> that?
>>
>> I think you have to write your loop like this, using
>> the SetCurrent method on the window you want to draw
>> into:
>>
>> w.SetCurrent
>> index++
>> pn = PLOT( $
> [snip]
>> CURRENT = 1 )
>
> Yeah, I did look at that method (and implemented it as you say) but it
> does not solve the basic problem.
And it introduces a new one if I set the output to go to buffer:
IDL> display_diffs, names=['gfortran 4.4.6 PROD', 'baseline'], /png
..etc..
% Attempt to call undefined method: 'GRAPHICSBUFFER::SETCURRENT'.
% Execution halted at: DISPLAY_RESULT_DIFFERENCES 103
CRTM/branches/RB-2.1/src/Build/test/forward/display_diffs.pr o
% $MAIN$
So if you set the BUFFER keyword in the WINDOW() call, the method
SetCurrent becomes invalid for the graphics id.
So now I have to a
IF ( ~buffer ) THEN w.SetCurrent
before each FG call.
Wha...? I gotta be doing something wrong here.
cheers,
paulv
|
|
|