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 #75113 is a reply to message #74494] Thu, 17 February 2011 11:47 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wlandsman writes:

> I am unclear how to add graphics commands to a Coyote graphics window. If I create a simple plot in a resizeable window:
>
> cgplot,indgen(100),/window,psym=2
>
> and now I want to add error bars.
>
> for i=0,89 do cgplots,[i,i],[i-1,i+1],/addcmd
>
> I get the plot I want but only after 90 flashes of the window. (If I don't include the /addcmd keyword then the error bars go to a different window.)

I would turn "execution" of the commands off until
you were finished loading the commands:

cgplot,indgen(100),/window,psym=2
cgControl, EXECUTE=0
for i=0,89 do cgplots,[i,i],[i-1,i+1],/addcmd
cgControl, EXECUTE=1

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 20:50:15 PDT 2025

Total time taken to generate the page: 0.23982 seconds