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

Home » Public Forums » archive » Overplot cgplots in graphics window
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: Overplot cgplots in graphics window [message #86340 is a reply to message #86339] Mon, 28 October 2013 10:42 Go to previous messageGo to previous message
morganlsilverman is currently offline  morganlsilverman
Messages: 46
Registered: February 2013
Member
On Monday, October 28, 2013 1:25:42 PM UTC-4, David Fanning wrote:
> Morgan Silverman writes:
>
>
>
>> Sorry, I forgot to mention that the included code was in a procedure
>
> and the main program had
>
>> cgWindow, 'Plot_DAQ_Trajectories', wbackground='white', wxsize=600, wysize=500, wtitle='Westerly Flow'
>
>>
>
>> I still have several questions and some clarification though. In your example using cgWindow, you use cgPlot to begin. When I try to apply this to my code I get data plotted but no map background because cgPlot doesn't allow map=mapCoord. Is this correct or do I have things in the wrong order.
>
>
>
> Well, you have the wrong command. If you are not using a line plot, then
>
> you wouldn't use the cgPlot command. :-)
>
>
>
> You seem to be using a cgMap object. So, I would try something like
>
> this:
>
>
>
> map = Obj_New('cgMap', ..., /AddCmd)
>
>
>
> Where "...", of course, includes all the usual things you put into the
>
> command.
>
>
>
>> Also, to clarify. Once I have completed the loop, what I need to do is rerun the entire code with a new dataset going through the same calculations and plotting loop. At the moment this creates a new window, but I want to put in the same window as the first time I ran the code. Is this possible? Thanks.
>
>
>
> Every time you call cgWindow, it creates a new graphics window. If this
>
> is not what you want, then check to see if that window is on the
>
> display, and, if it is, use it, rather than creating a new window.
>
>
>
> wids = cgQuery(TITLE=titles, COUNT=count)
>
> IF count NE 0 THEN BEGIN
>
> index = Where(StrUpCase(titles) EQ 'Plot_DAQ_Trajectories', tcnt)
>
> ENDIF ELSE tcnt = 0
>
> IF tcnt EQ 0 THEN BEGIN
>
> cgWindow, WTitle='Plot_DAQ_Trajectories', wxsize=600, wysize=500
>
> ENDIF ELSE BEGIN
>
> cgSet, wids[index[0]]
>
> ENDELSE
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> 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.")

That's exactly what I needed. IDL really can do everything as long as you know how to do it :-) Thanks.

-Morgan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgHistoplot -- input histogram results?
Next Topic: blocking user from changing graphics properties in widget_window

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

Current Time: Fri Oct 10 10:25:54 PDT 2025

Total time taken to generate the page: 0.24096 seconds