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

Home » Public Forums » archive » z-buffer
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Z-Buffer [message #8166 is a reply to message #6727] Thu, 13 February 1997 00:00 Go to previous messageGo to previous message
sigut is currently offline  sigut
Messages: 12
Registered: February 1994
Junior Member
In article <330206B8.41C67EA6@astrosun.tn.cornell.edu>
John-David Smith <jdsmith@astrosun.tn.cornell.edu> writes:

> ... but it doesn't address the following larger issue:
> suppose what you needed to put into postscript was *actually* generated
> from some image command, and not a plotting command. For a specific
> example, suppose you had a galaxy survey with three dimension ( ra, dec,
> and redshift) as an image, and you wanted to overlay axes. Getting the
> axes registered to the image is difficult, it seems to me, because of
> this dichotomy between plot and image positioning paradigms.

In 2d you can do something like:

;
; raster.script
;

@get_stars.script ; this reads in a byte array (480,512)

a=intarr(2,2)
!p.title='Feb 21 00:54:38 1992'

set_plot,'ps'

device,xoffset=4

if float(!d.x_size)/!d.y_size lt float(480)/512 then $
!p.region=[0,0,1,512.*(float(!d.x_size)/480./float(!d.y_size ))] $
else $
!p.region=[0,0, 480.*(float(!d.y_size)/512./float(!d.x_size)),1]

tv,b

plot,a,/nodata,/noerase,xrange=[0,1],yrange=[0,1], $
xmargin=[0,0],ymargin=[0,0],ticklen=-.02,xstyle=8

device,/close
set_plot,'x'

For 3-dim I just don't see quite clearly how your image is defined,
what axes do you want and where do you want them. How about an email
with details?

George
--
------------------------------------------------------------ ------------------
George M.Sigut, ETH Informatikdienste, Anwenderunterstuetzung, CH-8092 Zurich
Swiss Federal Institute of Technology, Computing Services, User Support
email: sigut@awu.id.ethz.ch Phone: +41 1 632 5763 Fax: +41 1 632 1312
>>>>>>>>> in case of email problems send the mail to "sigut@acm.org" <<<<<<<<<
------------------------------------------------------------ ------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 'ffff'x is negative in 5.2 positive in 5.2.1
Next Topic: 3d-polar

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

Current Time: Fri Oct 10 23:03:02 PDT 2025

Total time taken to generate the page: 3.43522 seconds