plot colour using GUIDE

1 Ansicht (letzte 30 Tage)
Jason
Jason am 20 Jul. 2011
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

Akzeptierte Antwort

Robert Cumming
Robert Cumming am 20 Jul. 2011
set ( handles.axes2, 'Color', [1 0 1] )
  2 Kommentare
Jason
Jason am 20 Jul. 2011
Thankyou both. I now need to change the grid color?
Is this possible
Thanks
Robert Cumming
Robert Cumming am 20 Jul. 2011
set ( handles.axes2, 'XColor', [1 0 1] )

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by