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

Home » Public Forums » archive » Multiple plot with mapCoord
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: Multiple plot with mapCoord [message #88915 is a reply to message #88914] Thu, 03 July 2014 06:46 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: make_array function bug
Next Topic: Getting WIDGET_TABLE Number of rows and columns

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

Current Time: Mon Oct 20 18:46:57 PDT 2025

Total time taken to generate the page: 3.20384 seconds