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 #83500 is a reply to message #83494] Thu, 07 March 2013 14:46 Go to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
On Thursday, March 7, 2013 3:23:19 PM UTC-7, Bogdanovist wrote:
> I want to do something pretty simple, which is to create a map with continents and overlay contours. The bare bones of the key part of the code looks like this:
>
>
>
> position = [pos_xmin,pos_ymin,pos_xmax,pos_ymax]
>
> Contour,data,lons,lats, /Fill, Levels=contourLevels, c_colors=contourColours,position=position
>
> Map_set,0,180,/continents,/cyl,/grid,/NoErase,position=posit ion
>
>
>
> It looks like map_set (or actually map_grid) is making grid lines within the region specified by position, but is leaving room for some non-existant annotation and therefore becomes misaligned with respect to the co-ordiantes established by CONTOUR.
>
>
>
> How can this be done correctly?

Sigh... You could use cgContour. Or, you could probably just set XStyle=1 and YStyle=1 keywords on the brain dead Contour command. :-)

Cheers,

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 22:49:43 PDT 2025

Total time taken to generate the page: 0.66546 seconds