Line series marker question
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 13 Okt. 2011
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 Kommentare
Weitere Antworten (1)
Wayne King
am 13 Okt. 2011
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 Kommentar
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!