plot colour using GUIDE

3 次查看(过去 30 天)
Jason
Jason 2011-7-20
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by