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

조회 수: 4 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by