フィルターのクリア

How to change scatter plot fonts

3 ビュー (過去 30 日間)
Matt
Matt 2014 年 9 月 20 日
編集済み: Rick Rosson 2014 年 9 月 20 日
In the matlab code below, I have scattered points. How can i choose different scatterd fonts like * and + and set the color of theses scattered points.
x=[0.8,1.3,2.2,2.9,3.6];
y1=[17.22,18.9,19.74756674,21.64790459,22.77216041];
y2=[0.07,0.11,0.163,0.27,0.29];
[ax, h1, h2] = plotyy(x,y1,Ax,y2,'scatter');
line(x,y1,'Parent',ax(1))
line(x,y2,'Parent',ax(2) )
set(ax(1),'ycolor','r')
set(ax(2),'ycolor','b')
Thank you very much!

回答 (1 件)

Rick Rosson
Rick Rosson 2014 年 9 月 20 日
編集済み: Rick Rosson 2014 年 9 月 20 日
set(h1,'marker','*');
set(h2,'marker','+');

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by