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

8 Ansichten (letzte 30 Tage)
BN
BN am 23 Jul. 2020
Kommentiert: BN am 23 Jul. 2020
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Jul. 2020
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 Kommentar
BN
BN am 23 Jul. 2020
Thank you so much I set the axes to
ax.SortMethod = 'childorder';
As you said and it worked.
Thanks a million

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by