graphing colors
古いコメントを表示
this is the code i have:
plot(all_conflims_mult, 'linestyle', '--', 'color', [0.00 0.00 1.00], 'linewidth', thick)
instead of having 'color', [0.00 0.00 1.00]
i would like to just 'g' or 'r' (For green and red) instead of the 3 numbers, how would i do that? THanks
採用された回答
その他の回答 (2 件)
Sean de Wolski
2011 年 10 月 11 日
or:
plot(x,y,'g');
and
doc linespec
for a full list of predefined colors.
Laura Proctor
2011 年 10 月 11 日
plot(1:10,'--b')
Also note that LineWidth must be a number:
plot(1:10,'LineStyle','--','Color','b','LineWidth',4)
カテゴリ
ヘルプ センター および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!