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

9 次查看(过去 30 天)
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