Re: Z-Buffer - partial solution [message #8192] |
Tue, 11 February 1997 00:00 |
nolf
Messages: 4 Registered: March 1995
|
Junior Member |
|
|
Regarding John-David Smith <jdsmith@astrosun.tn.cornell.edu> problem
with the Z-buffer device, I offer a partial solution. These modifications
to D. Fanning's example will line up the axes correctly (at least they
do on my X-terminal):
TVLCT, [255, 0], [255, 255], [0,0], 1
data = DIST(40,40)
thisDevice = !D.NAME
SET_PLOT, 'Z'
DEVICE, Set_Resolution=[300,300]
SURFACE, data, Color=1
picture = TVRD()
> add these 2 lines
> x = !x.window
> y = !y.window
SET_PLOT, thisDevice
WINDOW, XSize=300, YSize=300
TV, picture
> modify this line
SURFACE, data, /NoErase, /NoData, Color=2, position=[x(0),y(0),x(1),y(1)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I say this is only a partial solution because the axes labels don't
line up exactly, but I've spent enough time on this.
Scott Nolf
|
|
|