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

Home » Public Forums » archive » Map graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Map graphics [message #19876] Wed, 03 May 2000 00:00
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Hello,

I have a widget routine which displays a map (using Map_Set, etc.)
with vector overlays. The routine user can call another widget
application
that displays some direct graphics plots using !P.Multi = [0,2,2].
When the user returns to the main routine, plotting the earlier vector
overlays on the map shows that the plotting parameters have changed.
All of the vectors get squished toward the center of the graphic.

Before starting the second routine, I have saved a copy of !P.Multi,
!X.S, !Y.S, and !Map. Each of these is restored after the second
routine is closed. Short of calling Map_Set again, is there a way I
can save the mapping/plotting parameters and restore them later?

Thanks!

Ben


--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
Re: Map graphics [message #19971 is a reply to message #19876] Wed, 03 May 2000 00:00 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
"Liam E.Gumley" wrote:

> Ah the joy of global variables....
>
> One way to handle this problem is to 'refresh' the map projection by
> calling MAP_SET with the /NOERASE and /NOBORDER keywords to re-create
> the map projection whenever you select the graphics window which
> contains the map plot.
>
> If you decide to go the system variable route, I would save !X, !Y, !Z,
> !P, and !MAP for each graphics window. I use this technique in my IDL
> frame tools which allow you to create a map projection in one frame, a
> multiple panel plot in the next frame, and then switch between them with
> no problems:
> http://cimss.ssec.wisc.edu/~gumley/frame.html
>
>

Thanks!


--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
Re: Map graphics [message #19973 is a reply to message #19876] Wed, 03 May 2000 00:00 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Ben Tupper wrote:
> I have a widget routine which displays a map (using Map_Set, etc.)
> with vector overlays. The routine user can call another widget
> application
> that displays some direct graphics plots using !P.Multi = [0,2,2].
> When the user returns to the main routine, plotting the earlier vector
> overlays on the map shows that the plotting parameters have changed.
> All of the vectors get squished toward the center of the graphic.
>
> Before starting the second routine, I have saved a copy of !P.Multi,
> !X.S, !Y.S, and !Map. Each of these is restored after the second
> routine is closed. Short of calling Map_Set again, is there a way I
> can save the mapping/plotting parameters and restore them later?

Ah the joy of global variables....

One way to handle this problem is to 'refresh' the map projection by
calling MAP_SET with the /NOERASE and /NOBORDER keywords to re-create
the map projection whenever you select the graphics window which
contains the map plot.

If you decide to go the system variable route, I would save !X, !Y, !Z,
!P, and !MAP for each graphics window. I use this technique in my IDL
frame tools which allow you to create a map projection in one frame, a
multiple panel plot in the next frame, and then switch between them with
no problems:
http://cimss.ssec.wisc.edu/~gumley/frame.html

Cheers,
Liam.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help with IDL versions`
Next Topic: Re: Set cursor color in widget_draw?

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

Current Time: Wed Oct 08 13:33:41 PDT 2025

Total time taken to generate the page: 0.00547 seconds