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

Home » Public Forums » archive » Re: latiude/ longitude legend outside the map
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: latiude/ longitude legend outside the map [message #29355 is a reply to message #29351] Wed, 13 February 2002 06:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marco Trommler (marco.trommler@ipf.tuwien.ac.at) writes:

> I would like to generate a Map with grid lines and a legend with the values
> of the latitude or longitude of the grid lines outside of the image (aligned
> to the map border)
>
> WINDOW, ...
> MAP_SET .....,,/cylindrical, xmargin=3,ymargin=3
> MAP_GRID, LABEL=2, LATDEL=5, LONDEL=10, LONLAB=reg.latmin[r]
>
> prints the values of the longitude on the min. latitude grid line of my map
> (at the lower border but inside the map)
>
> MAP_GRID, LABEL=2, LATDEL=5, LONDEL=10, LONLAB=reg.latmin[r]-0.5
>
> should print the values with space 0.5 under the lowest border, but the
> program doesn't make it..... Where is the mistake???

I think the mistake is trying to use IDL's map
projection routines to do this. :-)

I would position the map projection with the POSITION
keyword (rather than specifying the margins) to give
yourself some space to write the legend. Then, I would
write the legend with XYOUTS and PLOTS, again using
normalized coordinates to position things. A little
fooling around will quickly give you what you want.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Object method compiling
Next Topic: Re: Object/Direct Graphics Question

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

Current Time: Wed Oct 22 14:54:46 PDT 2025

Total time taken to generate the page: 1.20042 seconds