plot colour using GUIDE

Hello. I can't workout how to change the background colour of a plot that I associate with an axes component:
axes(handles.axes1)
plot(x,y)
I cannot find any mention of background color in the manual.
any suggestions? Thanks Jason

 채택된 답변

Robert Cumming
Robert Cumming 2011년 7월 20일

1 개 추천

set ( handles.axes2, 'Color', [1 0 1] )

댓글 수: 2

Jason
Jason 2011년 7월 20일
Thankyou both. I now need to change the grid color?
Is this possible
Thanks
Robert Cumming
Robert Cumming 2011년 7월 20일
set ( handles.axes2, 'XColor', [1 0 1] )

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2011년 7월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by