plot lines and stems behind the markers?
3 次查看(过去 30 天)
显示 更早的评论
Hi, How can I put the plot lines and stems behind the markers?

0 个评论
采纳的回答
Ameer Hamza
2020-10-21
You can use uistack(). For example, consider this code
x = 1:10;
y = rand(1,10);
hold on
s = scatter(x, y, 'filled', 'SizeData', 100);
p = plot(x, y, 'LineWidth', 2);
the line will be over the scatter points. You can bring the scatter point on top using
uistack(s, 'top')
3 个评论
Ameer Hamza
2020-10-21
You can also get the handle of stem object and arrange it using uistack
s = stem(..)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!