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

Home » Public Forums » archive » Help overplotting contours and surface
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Help overplotting contours and surface [message #71160] Sun, 30 May 2010 14:12
Virgil is currently offline  Virgil
Messages: 2
Registered: May 2010
Junior Member
Disclaimer: This is a homework problem, but I'm completely stumped.

I'm supposed to generate two plot panels in one window. The first
panel combines a fill and contour, the second contains a surface and
contour. My code is as follows:

; Set up the data for the plots
z = SHIFT(DIST(50), 25, 15)
z = EXP(-(z/15)^2)

; Set up 2 columns and 1 row for graphs
!P.MULTI = [0, 2, 1]
; Overplot contours
CONTOUR, Z, /FILL, NLEVELS = 7
CONTOUR, Z, /FOLLOW, NLEVELS = 7, /OVERPLOT

; Overplot contour and surface
SURFR
CONTOUR, Z, /T3D, ZVALUE = 0, /FILL, NLEVELS = 7
SURFACE, Z, /NOERASE
!P.MULTI = 0


My issue is that the third contour is overplotted over the first two
contours. If I reverse the order of the lines to plot the third
contour and the surface, then the surface is overimposed on the
contour (looks horrible, not like a single graph at all). If I just
plot the third contour and surface, it works great.

How can I specify for that third contour to plot in the second panel,
and the surface right under it?

Many thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Interpolation to conserve integrated flux
Next Topic: How to plot two image with the same height but different width

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

Current Time: Wed Oct 08 15:26:29 PDT 2025

Total time taken to generate the page: 0.17006 seconds