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

Home » Public Forums » archive » Z-range
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
Z-range [message #18186] Tue, 14 December 1999 00:00 Go to next message
Dr.Xiaoming XU is currently offline  Dr.Xiaoming XU
Messages: 7
Registered: April 1998
Junior Member
Hi,

how can I set the Z range in the scale of x, y when use surface?
In other words, how the x,y,z be plotted in the same scale?

Thanks!

Xu
Re: Z-range [message #18280 is a reply to message #18186] Fri, 17 December 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Xiaoming XU (xu@graz.at) writes:

> how can I set the Z range in the scale of x, y when use surface?
> In other words, how the x,y,z be plotted in the same scale?

As Ben Tupper points out, this is going to have to be
done on object graphics. IDL's normal direct graphics
system is really a "two-and-a-half-D" system. As such,
it forces surface plots to have artificial
limitations. For example, no matter how you rotate a
surface plot in direct graphics, the Z-axis must be
vertical. This makes is *impossible* to get correct
axis scaling.

But the object graphics system is not so hard.
You can start with this simple surface plot from
my web page and most of the work will be done for
you. :-)

ftp://ftp.dfanning.com/pub/dfanning/outgoing/idl_course/simp le_surface.pro

Cheers,

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
Re: Z-range [message #18307 is a reply to message #18186] Wed, 15 December 1999 00:00 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Xiaoming XU wrote:

> Thank you Ben, I tried it. It dosnt work. I attached an image it produced.
> What��s can be wrong? Here is the code that I use.
>
> XM.
>

Ouch!

Well it was a thought. You might try two other things... switch to object
graphics for 3d stuff ... or try the following:

Use the T3d procedure to enter the relative scaling values for each axis
range.
T3d, Scale = [XYscaling[0], XYscaling[1], Zscaling[1]]

Then call Surface procedure with x and y provided as arguments and the t3d
keyword set. I think this should yield and isotropic plot/surface (fingers
crossed here!)
Surface, c,x,y, az = 0,/t3d

By the way, you must have a huge monitor!

window,/free,title='3D Model',xpos=0, ypos=0, xs=1000, ys=1000

Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: discrete cosine transform
Next Topic: Re: Another IDL twist

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

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

Total time taken to generate the page: 0.00592 seconds