Re: Multiple plot with mapCoord [message #88916 is a reply to message #88915] |
Thu, 03 July 2014 07:24  |
morganlsilverman
Messages: 46 Registered: February 2013
|
Member |
|
|
On Thursday, July 3, 2014 9:46:28 AM UTC-4, David Fanning wrote:
> Morgan Silverman writes:
>
>
>
>> I'm sorry for all the trouble but I tried modifying your code
>
>> to work with my data and I get both a black background IDL window
>
>> (which didn't happen in your Map_Test) and a white background
>
>> resizable graphics window that creates an infinite number of windows
>
>> until I hard quite IDL. I think this is because Avg2000Lon=float(73)
>
>> so my code is trying to create 73 windows. Map_Test is based on 6
>
>> discrete city lat/lons. How do I modify this to work with my array of
>
>> values. I'm plotting trajectories so each window has several different
>
>> trajectories plotted in each graph.
>
>
>
> The DRAW method of the cgMap object doesn't "erase" the display before
>
> it draws, in the way, for example, a cgPlot command would. So, it draws
>
> in whatever window is currently open and in the "opposite" color. If you
>
> want to draw into a white background window, create one:
>
>
>
> cgDisplay, 800, 400
>
>
>
> No one who has read this newsgroup for any length of time can not know
>
> by now that the first thing to do when you have a problem with a Coyote
>
> Graphic routine is to update your library:
>
>
>
> http://www.idlcoyote.com/code_tips/fixcoyoteprogram.php
>
>
>
> So, I presume you have done that and this is not why you are generating
>
> multiple windows.
>
>
>
> I think it is more likely that you still have an ADDCMD keyword on one
>
> of the commands you are using that you haven't shown us.
>
>
>
> I drew points in my example, but if converting that cgPlotS command to
>
> draw lines takes more than 10 seconds it is taking way too long. :-)
>
>
>
> If you would like to purchase some consulting time and send me the code,
>
> the Coyote Store is always open. :-)
>
>
>
> http://www.idlcoyote.com/coyotestore/
>
>
>
> 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.")
Thank you for all your help. Just wanted to let you know that I figured the problem out. I was missing an end statement before the cgWindow command to close the procedure. Now only 1 resizable window created!!
|
|
|