How do I bring the plot in front of the surf?

Dear all,
I want to bring the plot on the front of the surf, not behind it.
surf(loni, lati, new_precipitation.'); view(2)
hold on
L = plot(p(:,3),p(:,2),'^k','LineWidth',.75,'MarkerFaceColor','k');
I even used
uistack(L,'top')
But it's not worked.
Any Idea?
Thank you

 Respuesta aceptada

Walter Roberson
Walter Roberson el 23 de Jul. de 2020

1 voto

Use plot3() with a z value that exceeds the maximum new_precipitation
Alternately, set the axes SortMethod to 'childorder'; see https://blogs.mathworks.com/graphics/2014/11/04/sortmethod/

1 comentario

Thank you so much I set the axes to
ax.SortMethod = 'childorder';
As you said and it worked.
Thanks a million

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

BN
el 23 de Jul. de 2020

Comentada:

BN
el 23 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by