#### Help overplotting contours and surface

```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.
```
 0
5/30/2010 9:12:43 PM
comp.lang.idl-pvwave 11811 articles. 1 followers.

5 Replies
1030 Views

Similar Articles

[PageSpeed] 36
```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=...
```
 0
Wox
5/31/2010 12:03:02 PM
```On May 31, 5:03=A0am, 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=3D...

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.
```
 0
Virgil
5/31/2010 4:05:32 PM
```On May 31, 5:03=A0am, 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=3D...

How could we do similar with shade_surfe?
```
 0
Dave
6/1/2010 9:12:07 AM
```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
```
 0
Wox
6/3/2010 8:41:36 AM
```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.
```
 0
Wox
6/3/2010 8:48:19 AM
Similar artilces about - Help overplotting contours and surface:

Internet Router Help
Hi, I have a Netgear Gatway Router RT311 and a Cabel Modem [Nortel Networks UE20B ADSL Bridge]. My ISP is BT and we currently use their USB ADSL modem, connected to one office PC, and by using XP internet sharing we share the connection with other users in the office. However, things have now changed with regards to the network setup - we now have a server. My question is, will i be able to use the Cabel Modem and the Router to conect my Broadband to my Newtork Switch so that i can share my Broadband connection with the rest of my network in the office? If so could you give me...

help! help!! help!!!
x=[0 1 10] p=[100 80] how can I get A A=[3x(1) 2x(1) x(1) 1 0 0 0 0; 2x(1) x(1) 1 0 0 0 0 0; 3x(2) 2x(2) x(2) 1 -3x(2) -2x(2) -x(2) -1; 2x(2) x(2) 1 0 -2x(2) -x(2) -1 0; p(1)x(1) p(1) 0 0 -p(2)x(2) -p(2) 0 0; p(1) 0 0 0 -p(2) 0 0 0; 0 0 0 0 -p(2)x(3) -p(2) 0 0; 0 0 0 0 -p(3) 0 0 0; ] In article <fkus3t\$11h\$1@fred.mathworks.com>, Jim lei <redlightlike@mathworks.com> wrote: >x=[0 1 10] >p=[100 80] >how can I get ...

Re: Help using macro to refer files #3
Hey thanks. This works. Actually tried using something similar, but didn't = get it through because of some syntax error. Thanks a lot. --- On Tue, 2/6/09, Frank Poppe <Frank.Poppe@PWCONSULTING.NL> wrote: From: Frank Poppe <Frank.Poppe@PWCONSULTING.NL> Subject: Re: Help using macro to refer files To: SAS-L@LISTSERV.UGA.EDU Date: Tuesday, 2 June, 2009, 6:18 PM On Jun 2, 1:34 pm, gerhard.hellrie...@T-ONLINE.DE (Gerhard Hellriegel) wrote: > what do you mean? A FILE or a SAS-dataset? For a file you should not use = a > SET statement. > So what is it? > > Gerhard &...

Hi all, please I need help very ergent. I'm dealing with a scheduling jobshop problems using neural network . Jobshop scheduling problem is a problem in shopfloor in factories and its description is: consists of - a set of machines. - a collection of jobs to be scheduled, where each job must pass through each machine once only. each job has its own processing order and this may bear no relation to the processing order of any other job. each job should be processed through the machines in a particular order(precedence constraints) and in neural using multi layered, backpropagation. , your i...

Desperately require help with Visual Basic / SQL Server 2000
Hi, I am new to SQL Server. I am attempting to execute an insert query, but I keep getting an entire range of errors depending on which way I choose to do it. Can anybody tell me what is wrong with my code below? "txtkeyword" is a text box on my form. Thanks in advance, Daniel McDonald Dim mySQL As String Dim myRecSet As ADODB.Recordset Dim myConnection As New ADODB.Connection mySQL = "INSERT INTO tblcustomerfind ( CompanyName )SELECT tblcustomer.CompanyName" mySQL = mySQL & " From tblcustomer, tblcustomerfind WHERE (((tblcustomer.Compa...

Help Help Help Help Help
please,help us . we have a seious problem, we are designing a radio controlled car that is guided by the PC, to send the data wireless between the PC and the Car and vice versa. we use 2 transmitter/reciever circuits from 2 seperate radio controlled car each running with a different frequency (27 MHz & 40 MHz)and modify the functionality of each to do the disered work. but on mounting a transmitter(40MHz) and reciever(27MHz) on the car, and attach another transmitter(27MHz) and reciever(40MHz) to the PC; we found that on sending signals from the car to the PC on the transmitter & rec...

Help #2
Does anyone know how to create an animations ..... plz help me Google it! http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=gif+animation+tutorial http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=flash+animation+tutorial Enjoy! -- Chuck "christopher" <cans1a04_ct@yahoo.co.uk> wrote in message news:16f356a3.0409170248.15a9be8b@posting.google.com... > Does anyone know how to create an animations ..... > > plz help me On 17 Sep 2004 03:48:02 -0700, cans1a04_ct@yahoo.co.uk (christopher) wrote: >Does any...

Help me? WSD?
hi all, My name's Tuan, I'm from Ha Noi, Viet Nam, I am working for Tinh Van Group. We are developing an English - Vietnamese converter system for commerce. I want to find a English WSD (English Word Sense Disambiguation) tool for all words with high accuracy, if you know, please help me. Thanks & Best Regards! On Mon, 02 Jul 2007 02:26:16 -0700, tuanhv_mt <tuanhv@gmail.com> wrote: >hi all, > My name's Tuan, I'm from Ha Noi, Viet Nam, I am working for Tinh Van >Group. We are developing an English - Vietnamese converter system for >commerce. I want t...

Help on ode445
Can someone kindly tell me what's wrong with my last line of the code of using ode45? the error message I got is ??? Error using ==> exist Function 'exist' is not defined for values of class 'sym'. Error in ==> D:\MATLAB6p5\toolbox\matlab\funfun\private\odearguments.m On line 75 ==> if (exist(ode)==2) % M-file Error in ==> D:\MATLAB6p5\toolbox\matlab\funfun\ode45.m On line 155 ==> [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, args, ... Error in ==> H:\thesis\q.m On line 20 ==> [x,y] = ode45(c, [0 d], [1 2]) And here is my code Syms delta % ...

Help: DHCP DoS Attack
hi, I have a problem about DHCP. Recently I noticed a Dell DRAC management release/ack DHCP offer very fast, nearly 20 times/sec, and it makes DHCP server cannot offer other systems. So is there any way can avoid such problem? It sounds like a DoS attack actually. I don't know why Dell DRAC has such problem but I have encountered twice on my DHCP server. Any hints I appreciate. Eric ...

/PAE does not help
Hi group, &nbsp; today I got 4GB DDR2 RAM for my desktop and tryed the /PAE switch with Windows XP. I found no difference with Labview 8.5. My programm crys out of memory at the same data set sizes which I expect to use &lt; 1,5 GBytes RAM. Have somebody noticed improvements in labview usuable memory with the /PAE switch? &nbsp; IngoWolf wrote: which I expect to use &lt; 1,5 GBytes RAM. How did you calculate how much RAM you application will use? What size is your largest array? &nbsp; Remember that arrays need to be contiguous memory, so the problem could be caused by ...

Can Anyone Help
hi can anyone tell me how to make one line bold in a table and leave the rest alone On Tue, 10 Jul 2007 23:00:54 GMT, pure.logic@ntlworld.com wrote: >hi can anyone tell me how to make one line bold in a table and leave >the rest alone Look up "borders". See Format menu, borders. bob As a newcomer to MS Word and MS Publisher - how do I export text and graphical material from them into other DTP software? John -- _ _________________________________________ / \._._ |_ _ _ /' Orpheus Internet Services \_/|...

noob help request
I have defined two classes with one common field (called code) and several different fields. In class A there is only one instance of any given code as all items are individual. In class B, there may be none, one or many instances of each code, as there can be any number of Bs referring to a single A. I need to make a list of Bs, remove dupes, and then create a list of As that have Bs. (I hope this makes sense!) with much research and reading of my book I managed to get this working, but at one stage I had errors that talked about being unable to concatenate type A. So I converted my As...

Re: HELP Minisoft support
The e-mail address is support@minisoft.com I am not sure support extends into the weekend -------------- Original message from Craig Lalley <mr_lalley@YAHOO.COM>: -------------- > Does anyone answer the phones at Minisoft on the weekend. > > Please call Donna Rivett at Northern Safety 315-793-4990!! > > TIA, > > -Craig > > > --------------------------------- > Do you Yahoo!? > Get on board. You're invited to try the new Yahoo! Mail Beta. > > * To join/leave the list, search archives, change list settings, *...

Help: "find command in windows"
Hi, group, I need to move a perl script from unix to windows. I need to do something like "find -type f" to list all the file under a directory and sub-directory, the list will be very big, 200million files. Now under windows, I will have to use File::Find, and print each file name by file handler, but it is much slow than the unix command "find", does any body have a better idea? Thanks for your help ...

Help for Help
Although OA is definitely committed to not provide new help or other documentation for D5, (outside this newsgroup and paid help of course) would it be too difficult to supply a few simple redirection links so when I click in D5 on Help when online I automatically get the D4 help instead of: "The page cannot be found"? ...

TABLE, cell width.. help
Hi.. I have this code in my page <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td width="9"><img src="topLeft.gif"></td> <td>text goes here</td> <td width="9"><img src="topRight.gif"></td> </tr> </table> The table is stretching and making the left and right columns wider than 9 pixels wide. Why? This is very frustrating.. Am I missing something? Thanks, Rich rwmorey@27east.com wrote: > I ha...

Help on DDJ article on template meta-programming
Dear all, I'm experiencing with meta-programming (I'm a newbie). I've found an interesting article by Thomas Becker at http://www.ddj.com/cpp/184401565 Unfortunately the code does not compile: with GCC 4.1.1 I get 18 errors. The command used for compiling is: g++ -Wall -Wextra -ansi meta.cpp where meta.cpp is the source code. I've tried to make some adjustments and I end up with "only" 2 errors. Now I don't understand why my final version does not compile. Can someone able to explain why this not work and how to fix it? Here below is the...

need some help
Hi all. i m running option 61 c with 2 operator console 2250. I have a rote RDB=50 with 20 members(COT Lines. Now customer wants that if any member of this route is busy then it should be sho on console any key vice versa if all members or some members of this route are busy then it must be shown on console keys. Can i programme console ICI key for individual trunk member status??? if yes then how??? another thing is that is it possible to access/pick individual trunk from console key for dial out like we programmed a hot key on M3904 for trunk to get access of trunk??? i m stuck at ...

iterator help
Hi all, I am writing my own container and need an iterator. I am hesitating if I should my iterator should inherited from std::iterator or just write my own one. Please give me an idea. BTW, if I write my own one, should I let it defined inside my container(inner class) or just be a complelely independent class. Thanks. "Rex_chaos" <rex_chaos@21cn.com> wrote in message news:f7a7417.0310082136.64690c9@posting.google.com... > > I am writing my own container and need an iterator. I am > hesitating if I should my iterator should inherited from > std::iterator o...

need a little help
Well I usually can figure it out myself, but this current problem I can't no matter hard I look at it. The problem is this: print "<form ACTION=/cgi-bin/AFselect2.cgi method=get>Series Name: <select name=queryser>\n"; \$key3 = "Rabbits and Chickens"; \$key3 = "Cats and Dogs"; \$key3 =~ s/ /\+/g; \$names = \$key3; \$key3 =~ s/\+/ /g; print "<option value=\$names>\$key3</option>\n"; print"<INPUT TYPE=SUBMIT VALUE=\"Search\"></FORM>\n"; This shoud and does convert to this in html: <...

Help with this code #2
Volt = 300; Amp = 500; Pel = (Volt*Amp)/1000; Meff = 0.9; Ieff = 0.9; Piv = Pel*Meff*Ieff; RPMprofile = [0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 5500.... 6000 6500 7000 7500 8000 8500 9000 9500 10000]'; Tprofile = [600 600 600 600 600 580 500 400 350 320 280 260 245 220.... 200 190 180 170 150 0 0]'; RPM = (0:10:9200)'; %Sections of 10 T = interp1(RPMprofile,Tprofile,RPM,'spline'); MotorSpeedRad = (RPM.*pi)/30; ...

Quicktime .avi HELP!!!
I just got my Macbook Pro...my first mac...I have lots of home videos that are in .avi format from my pc...I tried to open the files, and had a blank screen. I have since applied the Xvid Codec and now I have full video, but no audio whatsoever. My audio format is MPEG Layer 3. Any ideas? HELP?! In article <61ae1f66-ba4f-4f07-9241-260f2ceb4556@s14g2000vbp.googlegroups.com>, gatrball <gordon.ck@gmail.com> wrote: > I just got my Macbook Pro...my first mac...I have lots of home videos > that are in .avi format from my pc...I tried to open the files, and > had a blank ...

Help: managing fonts in OSX
I've just upgraded to OSX and I'm not more able to manage my 1700 fonts!!! In OS9 I had my fonts in a second hard disk (80GB) and Adobe ATM to swicth on/off my fonts: great!! Now, Font Book loads fonts in primary hard disk (where is the system) and mine is too little to contain system, applications... and all my fonts. I've already moved lot of applications to this second disk, but the free left space is still not enough. I would like to keep my fonts in the biggest hard disk and tell OSX that my /Users/<unsername>/Library/Fonts/ is not in the system disk but in this other ...

plz help me help find Treo 650 firmware v01.71
I desperately need this firmware upgrade. I can't find it anywhere to dl. I'm= talking JUST the firmware that u can install off card as a prc. Anybody? --=20 pending new addr ...