Re: SHADE_SURF and hiding axes [message #8600] |
Thu, 27 March 1997 00:00 |
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 | |
+----------------------------------------------------------- --+---------+
|
|
|