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 #83491 is a reply to message #83487] Thu, 07 March 2013 16:03 Go to previous messageGo to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
> 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
[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: Fri Oct 10 00:46:13 PDT 2025

Total time taken to generate the page: 0.71937 seconds