フィルターのクリア

set one color for few graphs in the same axis

1 回表示 (過去 30 日間)
Dominika
Dominika 2014 年 6 月 23 日
コメント済み: Dominika 2014 年 6 月 23 日
Hi,
I have 5 graphs in the same axis, each for different x range. I want to set them all to one color, without specifying which in particular, so that every time I run the script I get all set off graphs in one color (every set in different color). My code:
c1=f<=f_point1;
semilogx(f(c1),TL(c1));
hold all
c2=(f_close>=f_point1) & (f_close<=f_point2);
semilogx(f_close(c2),TL_close(c2));
hold all
c3=f>=f_point2;
semilogx(f(c3),TL(c3));
hold all
plot(point1x,point1y)
hold all
plot(point1x,point1y)
hold all
Thanks a lot,
Dominika

採用された回答

Mischa Kim
Mischa Kim 2014 年 6 月 23 日
編集済み: Mischa Kim 2014 年 6 月 23 日
Hello Dominika, replace the first hold all by a hold on and remove all other hold commands.
  1 件のコメント
Dominika
Dominika 2014 年 6 月 23 日
Thanks Mischa!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by