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

조회 수: 8 (최근 30일)
BN
BN 2020년 7월 23일
댓글: BN 2020년 7월 23일
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

채택된 답변

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

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by