Colour of a line....

조회 수: 5 (최근 30일)
fcarl
fcarl 2011년 9월 14일
Hi,
I have a problem with lines in a plot. I want to draw a horizontal dotted line and the dots should hide behind other objects in the plot. So if there is a other object the line should not be visible and afterwards it should normally go on. Is there any option I could use?
Thanks a lot!

답변 (2개)

fcarl
fcarl 2011년 9월 14일
Okay I think Erase Mode is the right one. If I use this it doesn`t work. Is there any other parameter I have to change?

Walter Roberson
Walter Roberson 2011년 9월 14일
Use uistack() to push the line to the bottom. Or just draw it first.
Note: if you are using the OpenGL renderer (necessary if you are using transparency), then if you have a line in the same plane as a surface, it is not possible to control the order of the drawing. The work-around in such cases is to use a 3D line with a Z value that puts it "behind" the surface at normal viewing angles.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by