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

Home » Public Forums » archive » Re: Grid lines misaligned when using CONTOUR and MAP_SET
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: Grid lines misaligned when using CONTOUR and MAP_SET [message #83487] Thu, 07 March 2013 16:41 Go to previous message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
On Friday, 8 March 2013 11:03:55 UTC+11, Coyote wrote:
>> It's a little bit difficult to tell, but I think so. Here is an example on an image produced using an ancestor of my current code that shows the same issue, presumably for the same reasons. Note that the LON=110 and LON=180 grid lines are offset a little, the same for the latitude grid lines in a way suggesting the MAP_GRID is leaving room for some annotation or border.
>
>
>
> OK, yes, MAP_SET "cheats" a little bit an leaves a bit of a border. You can see it more dramatically like this:
>
>
>
> cgmap_set, 0, 180, /continents, /cylindrical, position=[0.1, 0.1, 0.9, 0.9]
>
> cgcontour, cgdemodata(7), indgen(360), indgen(360)/2.0-90, /overplot, $
>
> position=[0.1, 0.1, 0.9, 0.9], /FILL
>
> cgmap_continents
>
>
>
> Another reason, I guess, to prefer Map_Proj_Init although that has its own problems with these global data sets. But, for a place like Australia it should work fine.
>
>
>
> David

Great thanks. Using the cgMap object with 'Equirectangular' seems to do the job nicely.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plotting one point with plot3d()
Next Topic: image-convolution

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

Current Time: Wed Oct 08 20:02:46 PDT 2025

Total time taken to generate the page: 0.01274 seconds