comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » PLOT() function...which WINDOW() to plot to...?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PLOT() function...which WINDOW() to plot to...? [message #81444 is a reply to message #81352] Wed, 12 September 2012 11:59 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Updates
Next Topic: Is IDL 8.2 Workbench Slow, Too?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:41:30 PDT 2025

Total time taken to generate the page: 0.40010 seconds