Re: z-buffer and /noerase ? [message #41675] |
Tue, 09 November 2004 23:32 |
sandrokan
Messages: 20 Registered: September 2004
|
Junior Member |
|
|
> Hi,
>
> Try switching z-buffering off (I think it is sticky, so don't forget to
turn it
> back on which is the default.)
>
> DEVCIE, z_buffering = 0
>
> Ben
Thank you. It seems it works. I'll read the help about z_buffering..
Ale
|
|
|
Re: z-buffer and /noerase ? [message #41691 is a reply to message #41675] |
Tue, 09 November 2004 09:43  |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
sandrokan wrote:
> Ave, IDL users!
>
> I've got two contour maps that should be drawn over an image, and I'm using
> contour with /noerase key.
>
> One could expect that the second contour would be drawn over the first one.
> Strangely, if I use "set_plot, 'z'" command, the order is reversed (the
> first one is over the second one). Please see this code:
>
>
>
> pro test3
> device, decomposed=0
> loadct, 13
> set_plot, 'z'
> erase
> a=dist(50) gt 10
> contour, a, levels=[.5], color=200, /noerase
>
> contour, a-1, levels=[-.5], color=100, /noerase
>
> a=tvrd()
> set_plot, 'win'
>
> tv, a
> end
>
>
> I got a yello line (color=200) instead of the plue line (color=100).
> This problem does not happen if I use the win device....
>
>
> Thank you very much for any explanation. I use IDL5.2...
>
>
> A
>
>
Hi,
Try switching z-buffering off (I think it is sticky, so don't forget to turn it
back on which is the default.)
DEVCIE, z_buffering = 0
Ben
|
|
|