Color code with dash line
50 ビュー (過去 30 日間)
古いコメントを表示
Hi,
Could you please tell me the correct code for the dash line with specific color
For colors with dash line such as red and blue, the code can be written as follows:
plot (x,y, 'r:');
my question here is about the above command but for specific color code as stated below:
plot (x,y, 'color',[0 0.5 0]);
Thanks,
0 件のコメント
採用された回答
Matz Johansson Bergström
2014 年 8 月 24 日
x=1:10; plot(x, cos(x), ':','color',[0,0.5,0],'linewidth',3)
2 件のコメント
Matz Johansson Bergström
2014 年 8 月 24 日
I added 'linewidth' because it is difficult to see otherwise. I don't like the dash, I use -- instead, looks nicer when you use a larger linewidth.
Image Analyst
2014 年 8 月 24 日
編集済み: Image Analyst
2014 年 8 月 24 日
UTS's "Answer" moved here since it's not an "Answer" to the original post:
Thanks a lot.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!