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

Home » Public Forums » archive » Re: Contour plots on maps
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: Contour plots on maps [message #19993 is a reply to message #19983] Mon, 15 May 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Simon de Vet (simon@mathstat.dal.ca) writes:

> I found this site, and already have incorporated the solution into my code.
> If I plot my filled contours without a map projection, it plots beautifully,
> with no holes or gaps.
>
> This is the problem: first, the lowest few contours are filled in. Then they
> are all overwritten in white, and the next are filled in. These are also
> whited out, and the last couple are plotted. Only the last ones are visible
> when the plotting is complete.
>
> I am outputting all my plots to postscript files, and not to the screen
>
> I have also tried changing the centre of the plot, as you mentioned, so that
> the data border corresponds to the plot border (Greenwhich on the edge,
> instead of the middle.) This eliminates the odd diagonal lines, but does
> nothing to the filled contour troubles.
>
> These problems occur for all map projection types, and never if map
> projection is turned off.

The problem would appear to be your color table. I recommend
you load your color tables identically on both your display
device and in the PostScript device. I usually do something
like this. Suppose I am using 12 levels.

LoadCT, NColors=12, Bottom=1
contourColors = Indgen(12)+1
Contour, z, x, y, Levels=contourLevels, C_Colors=contourColors, /Fill

Then what I see on my display is identical to what I see in
PostScript.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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
Read Message
Previous Topic: Re: Array of structures.
Next Topic: Re: IDL5.2.1: Filling Contours on a Map Background

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

Current Time: Sat Oct 11 11:46:29 PDT 2025

Total time taken to generate the page: 0.96257 seconds