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

Home » Public Forums » archive » Re: cgArrow Solid keyword with a cgWindow
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: cgArrow Solid keyword with a cgWindow [message #83912 is a reply to message #83910] Fri, 19 April 2013 05:22 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sean Elvidge writes:

> I tried to use the /WINDOW keyword, (as the documentation
> specifies ;)) first, but I found that the plotted arrow appears in a
> new cgWindow rather than the current one. That is (using Revision 1200
> of the SVN repo, before your latest update):
>
> cgWindow,'cgPlot',INDGEN(10),/NoData
> cgArrow, 2, 2, 5, 5, /Data, /WINDOW
>
> Which isn't what I was after, but since you say this works correctly
> perhaps I am doing something wrong.
>
> David Fanning wrote:
>> David Fanning writes:
>> By the way, I do recommend people read the documentation. It's often
>> enlightening. ;-)
>
> It's always enlightening :)
>
> I just tried the new cgArrow (Revision 1201), but now I can't get any
> of the arrow to plot in the cgWindow, using /AddCmd or /WINDOW.
> Perhaps it is what I am doing, since I couldn't get it to work in
> either revision? Here is an example:
>
> cgWindow, 'cgPlot', INDGEN(10), /NoData
> cgArrow, 2, 2, 5, 5, /Data, /AddCmd
> cgArrow, 2, 2, 5, 5, /Data, /Window
>
> Both those cgArrow commands plot an arrow in a new Window rather than
> in the existing cgWindow.
>
> Any suggestions?

Oh, duh! Maybe adding ADDCMD=1 to the cgWindow command in the program
code would help. :-(

http://www.idlcoyote.com/programs/cgarrow.pro

Cheers,

David

P.S. I've fired Coyote. Again!

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to Zip cross-platform from IDL?
Next Topic: Re: issue with CMSAVE

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

Current Time: Thu Oct 09 23:24:04 PDT 2025

Total time taken to generate the page: 0.54909 seconds