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

Home » Public Forums » archive » strange things in CONTOUR
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
strange things in CONTOUR [message #42515] Mon, 14 February 2005 06:33 Go to previous message
Sverre Solberg is currently offline  Sverre Solberg
Messages: 18
Registered: February 2005
Junior Member
Perhaps I have done a very basic and stupid error in the program below,
or there's some very mysterious explanation.

The problem in a stripped version is simply to plot a contour plot on
top of another plot. As basic as that. However, the following code does
not show the contour fields (at least not on my screen):

loadct, 0
f = dist(100, 100)
pencolor = 0
background = !D.n_colors-1
y = findgen(100)
plot, y, color = pencolor, background = background
contour, f, /overplot, color = pencolor

The mysterious part is that when I add the line:
contour, f, color = pencolor, background = background, /nodata
anywhere *before* the plot command, it works perfectly ok.

What is wrong?

(IDL 5.5 for Unix)

Sverre
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: A simple IF statement question
Next Topic: Re: strange things in CONTOUR

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

Current Time: Fri Oct 10 16:30:56 PDT 2025

Total time taken to generate the page: 2.40081 seconds