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

Home » Public Forums » archive » surface,/horizontal ;inadequate
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
surface,/horizontal ;inadequate [message #19906] Fri, 28 April 2000 00:00
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
I want to draw a surface and plot lines only along x, not along y.
surface,...,/horizontal doesn't quite do what I want:

; Sample data to demonstrate the problem:
x=findgen(41) & y=findgen(256)
z=1/((1+(x-20)^2/5^2)#(1+(y-20)^2/50^2))

window,xsize=400,ysize=300
surface,z,x,y,az=-45 & wait,1
; Now the screen is all white. This is what I want to avoid.

surface,z,x,y,/hor,az=-45 & wait,1
; This is OK, and so is the next view:
surface,z,x,y,/hor,az=-10 & wait,1

surface,z,x,y,/hor,az=-7 & wait,1
; But now the lines are drawn along y, and again the screen is white.

; Transposing does not help:
surface,transpose(z),y,x,/hor,az=81 & wait,1
surface,transpose(z),y,x,/hor,az=45 & wait,1
; These are OK, but

surface,transpose(z),y,x,/hor,az=83 & wait,1
; here the screen is all white.

The precise angles where the plot direction goes 'wrong' seem to depend
slightly on platform.
(OK, so maybe the az-values are a bit funny in this example, but when I
do it 'for real', the problem does get in my way.)
Does anyone see how get lines along x only, or do I need a new feature?

Thanks for any suggestions, Kristian
Kristian Kjær, Risø National Laboratory
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: surface,/horizontal ;inadequate
Next Topic: Re: VB and IDL

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

Current Time: Wed Oct 08 18:14:05 PDT 2025

Total time taken to generate the page: 0.00594 seconds