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

Home » Public Forums » archive » map_set problem
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: map_set problem [message #41827 is a reply to message #5813] Wed, 24 November 2004 07:32 Go to previous messageGo to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <co1nul$7j3s$1@zam602.zam.kfa-juelich.de>,
Reimar Bauer <R.Bauer@fz-juelich.de> wrote:

> Dear all
>
> please could someone try the following example:
>
>
> The first grid line is not continous it is shifted about one pixel on my
> screeen. Did you see the same behaviour?

Hi Reimar,

I have completely given up on trying to use MAP_GRID to draw grids for
cylindrical projections. I always have problems at the left and right
edge and near the poles.

No amount of whining in this news group has helped. ;-)

The only approach I have found that works is something like the example
below. It is not general, but could be made so.

Ken Bowman



MAP_SET, /CYLINDRICAL, /ISOTROPIC, /CONT, /NOBORDER

xy1 = CONVERT_COORD(-180.0, -90.0, /TO_NORMAL) ;Lower left corner
xy2 = CONVERT_COORD( 180.0, 90.0, /TO_NORMAL) ;Upper right corner
x1 = xy1[0]
x2 = xy2[0]
y1 = xy1[1]
y2 = xy2[1]

nx = 4
dx = (x2 - x1)/nx
FOR i = 0, nx DO PLOTS, x1 + i*[dx, dx], [y1, y2], /NORMAL

ny = 6
dy = (y2 -y1)/ny
FOR j = 0, ny DO PLOTS, [x1, x2], y1 + j*[dy, dy], /NORMAL
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating DLMs that have IDL code in it
Next Topic: Re: find a plane in a 3D plot

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

Current Time: Mon Dec 01 08:34:56 PST 2025

Total time taken to generate the page: 0.16125 seconds