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

Home » Public Forums » archive » PVwave nice 3D Plot * /T3d problem ?
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
PVwave nice 3D Plot * /T3d problem ? [message #11794] Tue, 26 May 1998 00:00 Go to next message
zanotti is currently offline  zanotti
Messages: 5
Registered: May 1997
Junior Member
I'm probably missing something obvious here... I make a 3D plot (xyz) with PVwave. I want to put one of the 2D curves of the xz plane (ie at a given Y0 value) in red and annotate this particular curve with the annotation in the zx plane.
Here is what I have done:

loadct,2
x=findgen(40) & y=x
z=exp(-shift(dist(40),20,20)^2/40)
surface,z,x,y,xtitle='x',ytitle='y',zrange=[0,1],/save
t3d,/yzexch
Y0=10
plot,x,z(*,20),/T3D,zvalue=Y0,/noerase,yrange=[0,1] ,color=100 ,thick=2,/data
xyouts,10,10,'Text',z=Y0,/data,/t3d

It doesn't work for two reasons:
1- the axis of the 2D plot are not at the same level of that of the 3D plot. I suspect that something like a position keyword is missing...
2- the 2D plot is not drawn at the right Y0 value.


Does somedy have an idea ?
Thanks for help!

JMarc

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/_/_/ Jean-Marc Zanotti _/ _/_/_/
_/_/_/_/ Laboratoire Leon Brillouin _/_/_/_/
_/_/_/_/ C.E.A Saclay _/_/_/_/
_/_/_/_/ F-91191 Gif-sur-Yvette Cedex _/_/_/_/
_/_/_/_/ France _/_/_/_/
_/_/_/_/ Tel:(33)(0)1-69-08-97-01 _/_/_/_/
_/_/_/_/ Fax:(33)(0)1-69-08-82-61 _/_/_/_/
_/_/_/_/ Email: zanotti@bali.saclay.cea.fr _/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Re: PVwave nice 3D Plot * /T3d problem ? [message #11859 is a reply to message #11794] Thu, 28 May 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Jean Marc Zanotti (zanotti@amoco.saclay.cea.fr) writes:

> I'm probably missing something obvious here...
> I make a 3D plot (xyz) with PVwave. I want to put one of the
> 2D curves of the xz plane (ie at a given Y0 value) in red and
> annotate this particular curve with the annotation in the zx plane.
> Here is what I have done:
>
> [snip...]
>
> It doesn't work for two reasons:
> 1- the axis of the 2D plot are not at the same level of
> that of the 3D plot. I suspect that something like a
> position keyword is missing...
> 2- the 2D plot is not drawn at the right Y0 value.

Strange. :-(

I can't get the Plot to align with the surface axes either,
although I have tried any number of things. You do have to
specify the Z value in normalized coordinates rather than
in data coordinates, but that is the only obvious thing
wrong with your code.

I've often had difficulties getting things aligned with
surface plots, but I was pretty sure I was beginning to
understand some of the issues. I've seen examples where
it was done, so it is undoubtedly due to some kind of
thickheadedness rather than a software limitation. :-)
I'd like to play with it some more, but it's not going to
happen today. :-)

Cheers,

David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: PostScript and IDL,
Next Topic: Re: IDL and Wavelets!

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

Current Time: Wed Oct 08 17:36:51 PDT 2025

Total time taken to generate the page: 0.00563 seconds