How to change color of x and y axis by red and blue

14 ビュー (過去 30 日間)
Atom
Atom 2013 年 5 月 7 日
I want to change the color of each axis by red & blue?
x=0:.1:1
axis([0 1 0 1]);
y=x.*(1-x);
plot(x,y,'g');
hold on
line([0 0], [0 1]);
hold on
line([0 1], [0 0]);

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 5 月 7 日
set(gca,'xcolor','r','ycolor','b')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Exploration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by