Line series marker question
조회 수: 2 (최근 30일)
이전 댓글 표시
When plotting, is it possible to have more than one marker type for the same line series? eg.... plot([0 1],[0 1]) - with two different markers?
댓글 수: 0
채택된 답변
Walter Roberson
2011년 10월 13일
No, any one lineseries is restricted to a single marker type. If you want different markers then you must either split in to different lineseries or you must text() or line() the markers in to place yourself. If you text() or line() the markers yourself, watch out for the effects of zoom.
댓글 수: 0
추가 답변 (1개)
Wayne King
2011년 10월 13일
Yes,
plot([0 1],[0 1],'b-*');
hold on;
plot([0 1],[0 1],'r-.^'); axis([-0.5 1.5 -0.5 1.5]);
% or
clf
plot([0 1],[0 1],'b-*',[0 1],[0 1],'r-.^');
axis([-0.5 1.5 -0.5 1.5]);
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!