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

Home » Public Forums » archive » multi-surface plot
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
multi-surface plot [message #4607] Tue, 04 July 1995 00:00 Go to next message
jun is currently offline  jun
Messages: 9
Registered: June 1994
Junior Member
Does anyone know a way to make a multi-surface plot
in IDL?

We have 4 2D arrays z1(x,y), z2(x,y), z3(x,y) and z4(x,y),
and we want to plot all 4 surfaces in one plot. These are
surfaces at different height. It would be interesting to
plot them together in one plot so that people can compare
them.

Thanks in advance.

Cheers,

J. Xu
Re: multi-surface plot [message #4696 is a reply to message #4607] Fri, 07 July 1995 00:00 Go to previous message
jun is currently offline  jun
Messages: 9
Registered: June 1994
Junior Member
Thanks many people for contributing their ideas on the multi-surface
plot problem. Inspired by Dr. L. Kramer, I tried the following way which
works pretty well for me:

IDL> surface, Z1, ZRANGE=[100,300], /nodata, /save ;setup coordinates
IDL> surface, Z1, ZRANGE=[100,300], /T3D, xstyle=4, ystyle=4, zstyle=4, /noerase
IDL> surface, Z2, ZRANGE=[100,300], /T3D, xstyle=4, ystyle=4, zstyle=4, /noerase
... ... (repeat this on Z3 and Z4)

It's even better if you use different color for each surface.
Because many people expressed their interest in this problem, I think
it might be good to post this solution.

Finally, Thanks, Leonard. Great idea!








In article <lkramer.4.009623B3@neosoft.com>, lkramer@neosoft.com (Leonard Kramer) writes:
|> In article <3tbvof$ink@apakabar.cc.columbia.edu> jun@eureka.columbia.edu (Jun Xu) writes:
|> >Path:
|> > uuneo.neosoft.com!news.uh.edu!swrinde!gatech!rutgers!news.co lumbia.edu!eureka.co
|> >lumbia.edu!jun
|> >From: jun@eureka.columbia.edu (Jun Xu)
|> >Newsgroups: comp.lang.idl-pvwave
|> >Subject: multi-surface plot
|> >Date: 4 Jul 1995 18:02:55 GMT
|> >Organization: columbia astronomy department
|> >Lines: 15
|> >Sender: jun@parsifal.phys.columbia.edu (Jun Xu)
|> >Distribution: world
|> >Message-ID: <3tbvof$ink@apakabar.cc.columbia.edu>
|> >NNTP-Posting-Host: parsifal.phys.columbia.edu
|> >Keywords: multi-surface plot
|>
|>
|> >Does anyone know a way to make a multi-surface plot
|> >in IDL?
|>
|> >We have 4 2D arrays z1(x,y), z2(x,y), z3(x,y) and z4(x,y),
|> >and we want to plot all 4 surfaces in one plot. These are
|> >surfaces at different height. It would be interesting to
|> >plot them together in one plot so that people can compare
|> >them.
|>
|> >Thanks in advance.
|>
|> >Cheers,
|>
|> >J. Xu
|>
|> May I suggest:
|>
|>
|> SURFACE,Z1,/SAVE
|> SURFACE,Z2,/T3D,XSTYLE=4,YSTYLE=4,ZSTYLE=4,/NOERASE
|> SURFACE,Z3,/T3D,XSTYLE=4,YSTYLE=4,ZSTYLE=4,/NOERASE
|> SURFACE,Z4,/T3D,XSTYLE=4,YSTYLE=4,ZSTYLE=4,/NOERASE
|>
|> You might want to also specify a different color for each variable. E-mail me
|> for details if interested.
|>
|> Leonard
|>
|>
|>
|>
|>
|> ------------------------------------------------------------ ---------
|> Leonard Kramer, Ph.D. Physicist.
|> AGAR Corporation, (Process Measurement & Control)
|> POB 802127 Houston, TX 77280-2127
|> email: lkramer@neosoft.com
Re: multi-surface plot [message #4698 is a reply to message #4607] Thu, 06 July 1995 00:00 Go to previous message
todd is currently offline  todd
Messages: 25
Registered: February 1994
Junior Member
In article <3tbvof$ink@apakabar.cc.columbia.edu>, jun@eureka.columbia.edu (Jun Xu) writes:
|> Does anyone know a way to make a multi-surface plot
|> in IDL?
|>
|> We have 4 2D arrays z1(x,y), z2(x,y), z3(x,y) and z4(x,y),
|> and we want to plot all 4 surfaces in one plot. These are
|> surfaces at different height. It would be interesting to
|> plot them together in one plot so that people can compare
|> them.
|>
|> Thanks in advance.
|>
|> Cheers,
|>
|> J. Xu
|>

I've used the Z-buffer device to plot multiple isosurfaces
(using the shade_volume/polyshade combination) into a single
image. I suspect this is also possible with the various surface
making procedures.

--

Todd Ratcliff
UCLA Dept. of Earth & Space Sciences
Room 2707 Geology Building
UCLA Box 951567
Los Angeles, CA 90095-1567 todd@artemis.ess.ucla.edu
(310)825-3118 http://artemis.ess.ucla.edu/~todd/home.html
Re: multi-surface plot [message #4699 is a reply to message #4607] Thu, 06 July 1995 00:00 Go to previous message
lkramer is currently offline  lkramer
Messages: 5
Registered: July 1995
Junior Member
In article <3tbvof$ink@apakabar.cc.columbia.edu> jun@eureka.columbia.edu (Jun Xu) writes:
> Path:
> uuneo.neosoft.com!news.uh.edu!swrinde!gatech!rutgers!news.co lumbia.edu!eureka.co
> lumbia.edu!jun
> From: jun@eureka.columbia.edu (Jun Xu)
> Newsgroups: comp.lang.idl-pvwave
> Subject: multi-surface plot
> Date: 4 Jul 1995 18:02:55 GMT
> Organization: columbia astronomy department
> Lines: 15
> Sender: jun@parsifal.phys.columbia.edu (Jun Xu)
> Distribution: world
> Message-ID: <3tbvof$ink@apakabar.cc.columbia.edu>
> NNTP-Posting-Host: parsifal.phys.columbia.edu
> Keywords: multi-surface plot


> Does anyone know a way to make a multi-surface plot
> in IDL?

> We have 4 2D arrays z1(x,y), z2(x,y), z3(x,y) and z4(x,y),
> and we want to plot all 4 surfaces in one plot. These are
> surfaces at different height. It would be interesting to
> plot them together in one plot so that people can compare
> them.

> Thanks in advance.

> Cheers,

> J. Xu

May I suggest:


SURFACE,Z1,/SAVE
SURFACE,Z2,/T3D,XSTYLE=4,YSTYLE=4,ZSTYLE=4,/NOERASE
SURFACE,Z3,/T3D,XSTYLE=4,YSTYLE=4,ZSTYLE=4,/NOERASE
SURFACE,Z4,/T3D,XSTYLE=4,YSTYLE=4,ZSTYLE=4,/NOERASE

You might want to also specify a different color for each variable. E-mail me
for details if interested.

Leonard





------------------------------------------------------------ ---------
Leonard Kramer, Ph.D. Physicist.
AGAR Corporation, (Process Measurement & Control)
POB 802127 Houston, TX 77280-2127
email: lkramer@neosoft.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Widget problems
Next Topic: The TAB key is alive!

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

Current Time: Wed Oct 08 17:35:55 PDT 2025

Total time taken to generate the page: 0.00916 seconds