Re: Help overplotting contours and surface [message #71152] |
Tue, 01 June 2010 02:12  |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On May 31, 5:03 am, Wox <s...@nomail.com> wrote:
> On Sun, 30 May 2010 14:12:43 -0700 (PDT), Virgil
>
> <chemical.ri...@gmail.com> wrote:
>> How can I specify for that third contour to plot in the second panel,
>> and the surface right under it?
>
> I think the SAVE keyword to SURFACE is used for this. From the help:
>
> SURFACE, Z, /SAVE
> CONTOUR, Z, /NOERASE, /T3D , ZVALUE=...
How could we do similar with shade_surfe?
shade_surf,Z
|
|
|
Re: Help overplotting contours and surface [message #71157 is a reply to message #71152] |
Mon, 31 May 2010 09:05   |
Virgil
Messages: 2 Registered: May 2010
|
Junior Member |
|
|
On May 31, 5:03 am, Wox <s...@nomail.com> wrote:
> On Sun, 30 May 2010 14:12:43 -0700 (PDT), Virgil
>
> <chemical.ri...@gmail.com> wrote:
>> How can I specify for that third contour to plot in the second panel,
>> and the surface right under it?
>
> I think the SAVE keyword to SURFACE is used for this. From the help:
>
> SURFACE, Z, /SAVE
> CONTOUR, Z, /NOERASE, /T3D , ZVALUE=...
Thanks for your response. However, if I graph the surface before the
contour, the contour you cannot see the surface well. The contour
needs to be plotted before the surface.
|
|
|
Re: Help overplotting contours and surface [message #71158 is a reply to message #71157] |
Mon, 31 May 2010 05:03   |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Sun, 30 May 2010 14:12:43 -0700 (PDT), Virgil
<chemical.rivas@gmail.com> wrote:
> How can I specify for that third contour to plot in the second panel,
> and the surface right under it?
I think the SAVE keyword to SURFACE is used for this. From the help:
SURFACE, Z, /SAVE
CONTOUR, Z, /NOERASE, /T3D , ZVALUE=...
|
|
|
|
Re: Help overplotting contours and surface [message #71251 is a reply to message #71157] |
Thu, 03 June 2010 01:41  |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
How about this:
; 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
!P.MULTI[0]=1
SURFACE, Z, /NOERASE, /T3D
!P.MULTI = 0
|
|
|