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

Home » Public Forums » archive » Y axis where Z axis is by default w/ 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
Y axis where Z axis is by default w/ surface [message #17382] Thu, 14 October 1999 00:00 Go to next message
T Bowers is currently offline  T Bowers
Messages: 56
Registered: May 1998
Member
ok, simple question
in a surface plot (or shade_surf), how do I make my Y axis
run down the left side like the Z axis does by default. e.g, I
have an array data[] like:

-0.0 1.0 1.1 1.2
-0.5 2.0 2.2 2.5
-1.0 1.0 3.3 5.0

then I surface it with:
depth = data[0,*] ;1st column of data[]
timeStep = [0,1,2] ;create values for axis
values = data[1:*,*] ;rest of data[]
surface, values, timestep, depth

I've played mercilessly with the Ax, Az keywords to rotate the
damn thing, but I need an Ay to get the desired effect! I thought
I could just rotate about the x axis 90 degrees with Ax keyword,
but this doesn't really rotate about x, it tilts the plot toward or
away from you (poor behavior IMO). Really, I just want my Y
and Z axes (axes?) to switch places.
Can someone be my savior, please before I resort to extreme
violence in the workplace?

thanks.
Re: Y axis where Z axis is by default w/ surface [message #17512 is a reply to message #17382] Mon, 18 October 1999 00:00 Go to previous message
T Bowers is currently offline  T Bowers
Messages: 56
Registered: May 1998
Member
[snip]
> Have you played with something like my object graphics
> XSURFACE program with your data to see if you can get
> the rotation you desire there?
>
> http://www.dfanning.com/programs/xsurface.pro
>

I'm headed there now. You're just gonna force me to use
object graphics, aren't you? Might as well start digging in.

Thanks alot, David.
Re: Y axis where Z axis is by default w/ surface [message #17526 is a reply to message #17382] Fri, 15 October 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> Once you have the 3D transportation matrix the way you
> want it, you apply it to the SURFACE command by setting
> the T3D keyword there. But nothing I do can get what
> you want.

Got the airline schedule on the brain. Of course,
"transportation matrix" should have been "transformation
matrix". Holy moly!

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D region growing
Next Topic: ??% TRIGRID: X, Y, or Z array dimensions are incompatible?? what the....

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

Current Time: Sun Oct 12 11:49:09 PDT 2025

Total time taken to generate the page: 1.68138 seconds