plot lines and stems behind the markers?
조회 수: 16 (최근 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에서 Stem Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!