Plot a line below existing traces

조회 수: 8 (최근 30일)
Tobin Fricke
Tobin Fricke 2011년 7월 30일
Suppose I have an axis that already contains a number of traces made using the plot command. I want to annotate my graph using "line", but I want these lines to be under the existing traces. Is there a way to specify the plotting order?

답변 (1개)

Tobin Fricke
Tobin Fricke 2011년 7월 30일
Found one solution:
L = line(x, y);
uistack(L, 'bottom');
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 7월 31일
Note that that solution will not work for OpenGL: for OpenGL, if you have a surface and a line in the same plane, then OpenGL itself defines the drawing order. Unfortunately some graphics cards or graphics drivers get the defined order exactly backwards. Therefore if you are using OpenGL, you are better off giving specific Z coordinates so that the objects do not lie in the same plane.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by