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

Home » Public Forums » archive » Re: 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
Re: Help overplotting contours and surface [message #71152] Tue, 01 June 2010 02:12 Go to next message
d.poreh is currently offline  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 Go to previous messageGo to next message
Virgil is currently offline  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 Go to previous messageGo to next message
Wout De Nolf is currently offline  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 #71250 is a reply to message #71152] Thu, 03 June 2010 01:48 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Tue, 1 Jun 2010 02:12:07 -0700 (PDT), Dave Poreh
<d.poreh@gmail.com> wrote:

> How could we do similar with shade_surf?

I'm not sure you can. I'd go for object graphics.
Re: Help overplotting contours and surface [message #71251 is a reply to message #71157] Thu, 03 June 2010 01:41 Go to previous message
Wout De Nolf is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: DEM GTOPO30
Next Topic: Re: trying to find land/water coverage maps for NA

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

Current Time: Wed Oct 08 13:45:35 PDT 2025

Total time taken to generate the page: 0.00449 seconds