Help overplotting contours and surface [message #71160] |
Sun, 30 May 2010 14:12 |
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.
|
|
|