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

 Respuesta aceptada

Robert Cumming
Robert Cumming el 20 de Jul. de 2011

1 voto

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

2 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Jul. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by