Plotting with different colors
2 ビュー (過去 30 日間)
古いコメントを表示
Aftab Ahmed Khan
2014 年 10 月 10 日
コメント済み: Aftab Ahmed Khan
2014 年 10 月 10 日
Hi everyone, i want to plot these graphs wtih different colors as at the moment all of them are black. This plot command is inside the loop, each time it plots one curve on the figure window. So i want each time it plots the graph with different color. Thank you so much.
plot(ITstore,bptime,'-k','LineWidth',2);

0 件のコメント
採用された回答
Image Analyst
2014 年 10 月 10 日
You might check out this similar discussion: http://www.mathworks.com/matlabcentral/answers/158091-automating-line-markers-colors
その他の回答 (1 件)
Azzi Abdelmalek
2014 年 10 月 10 日
Don't specify the color k
plot(ITstore,bptime,'-','LineWidth',2)
2 件のコメント
Azzi Abdelmalek
2014 年 10 月 10 日
Look at this example
x=linspace(0,10,100);
y=[sin(x)' cos(x)']
plot(x,y,'-')
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!