Borrar filtros
Borrar filtros

Plot a line below existing traces

14 visualizaciones (últimos 30 días)
Tobin Fricke
Tobin Fricke el 30 de Jul. de 2011
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?

Respuestas (1)

Tobin Fricke
Tobin Fricke el 30 de Jul. de 2011
Found one solution:
L = line(x, y);
uistack(L, 'bottom');
  1 comentario
Walter Roberson
Walter Roberson el 31 de Jul. de 2011
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by