How to change the color of plotting lines

1,311 ビュー (過去 30 日間)
ZC Song
ZC Song 2019 年 6 月 18 日
コメント済み: Adam Danz 2019 年 6 月 18 日
Hi,
I have multiple lines to plot but by defualt they are different color, how to change the color to uniform color?
I tried to do this but failed (see below)
QQ截图20190618140313.png
QQ截图20190618140358.png

採用された回答

Adam Danz
Adam Danz 2019 年 6 月 18 日
The line of code that apparently does the plotting is cut off in your image.
Either specify the color during plotting
plot(x,y,'color', 'b');
or set the color later using the output handles
h = plot(x,y);
set(h, 'Color', 'b')
  2 件のコメント
ZC Song
ZC Song 2019 年 6 月 18 日
Great it works!
Thank you very much!
Adam Danz
Adam Danz 2019 年 6 月 18 日
Glad I could help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by