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

Home » Public Forums » archive » Resizeable Graphics Windows for Traditional Commands
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: Resizeable Graphics window [message #75110 is a reply to message #74494] Thu, 17 February 2011 12:03 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wlandsman writes:

> Thanks! That works but /LOADCMD (unlike ADDCMD) is not directly available in CGPLOT. So if I want to write a program with optional output to a resizeable window it would look like this:
>
> pro myplot,window= window
> ;/WINDOW - if set, then display in a resizeable graphics window
>
> cgplot,indgen(100),window = window,psym=2
> if keyword_set(window) then begin
> for i=0,89 do cgwindow,'cgplots',[i,i],[i-2,i+2],/loadcmd
> cgwindow,/execute
> endif else for i=0,89 cgplots,[i,i],[i-2,i+2]
>
>
> return
> end

Yes, that's another way to do it. I balked at
adding yet another keyword (LOADCMD) to each of the
Coyote Graphics routines, because I could see there
could easily be no end to it, and it was already
getting cumbersome. My goal in writing these routines
is simplicity, above all.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Book is Finished!
Next Topic: Re: Code optimization

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

Current Time: Fri Oct 10 08:57:19 PDT 2025

Total time taken to generate the page: 0.00619 seconds