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

Home » Public Forums » archive » Re: SHADE_SURF and hiding axes
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
Re: SHADE_SURF and hiding axes [message #8600] Thu, 27 March 1997 00:00
James Tappin is currently offline  James Tappin
Messages: 54
Registered: December 1995
Member
R Balthazor wrote:
>
> I would be very grateful if anyone can help with the following problem.
>
> I have a surface that I wish to represent with SHADE_SURF, and then
> surround with a 'box' of axes with various annotations, using
> AXIS,XAX=0,... AXIS,XAX=1,...etc.
>
> However, the rearmost axes in the projection are drawn over the figure
> and are visible through the shaded surface, which is confusing. If I
> draw the AXIS first and then use SHADE_SURF,/NOERASE, much of the axis
> is still erased.
>
> Is there any way to hide the rearmost axes when they are not visible
> through a 'valley'?
>
> Thanks in advance,
>
> R. Balthazor.

You can do it by using the Z-buffer e.g.:

SET_PLOT, 'Z'
DEVICE, set_resolution=[640,512] ; Or whatever

<your plotting commands i.e. the shade_surf and AXIS calls -- the order
doesn't matter>

image=tvrd()
SET_PLOT, 'X'

tv,image

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems when X seted to be 16 bpp!!
Next Topic: Re: Idl.colors

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

Current Time: Fri Oct 10 08:16:25 PDT 2025

Total time taken to generate the page: 1.03835 seconds