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
|