Line series marker question

2 ビュー (過去 30 日間)
Frank
Frank 2011 年 10 月 13 日
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?

採用された回答

Walter Roberson
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.

その他の回答 (1 件)

Wayne King
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]);
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 10 月 13 日
No, those use different line series

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by