How can I set spacing between markers in a plot?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have problem with setting marker spacing in a plot. I have two plots for the same curve to create marker at known distance, but I only want one legend that is a combination of the two '-dr'. How can I achieve this? I havetried to use "line_fewer_markers" but it did not work. Let us say I have: x=[1 3 5 7 9 11]; y=[1 2 6 18 30 31]; figure(1) hold on h1=plot(x,y,'-r'); h2=plot(x(1:2:end),y(1:2:end),'dr'); legend(......
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!